I have this code and Im getting two errors when debugging... Im trying to change
it to arrange it but I think I have a major error.My "experience" in c++ is
veeery basic this is my third week in college :( I need help please
the errors are:
>assignment5.obj : error LNK2019: unresolved external symbol "void __cdecl results(void)" (?results@@YAXXZ) referenced in function _main
1>assignment5.obj : error LNK2019: unresolved external symbol "void __cdecl num(void)" (?num@@YAXXZ) referenced in function _main
1>H:\CS110\assignment5\Debug\assignment5.exe : fatal error LNK1120: 2 unresolved externals
code:
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
void num();
void labels();
void separator();
void results();
int main()
//variable declaration
{
long invoiceNumber;
int quantity;
float unitPrice;
double tot;
cout<<"what is your invoice number?:";
cin>>invoiceNumber;
cout<<"What is your quantity ordered?:";
cin>>quantity;
cout<<"What is the price of the unit ordered?:";
cin>>unitPrice;
tot=(quantity*unitPrice);
cout<<endl;
cout<<endl;
num();
labels();
separator();
results();
system("pause");
return 0;
}
void num (long invoiceNumber)
{
cout<<"invoice number"<<invoiceNumber<<endl;
}
void labels()
{
cout<<"Quantities"<<setw(8)<<"unit Price"<<setw(8)<<"Total"<<endl;
}
void separator()
{
cout<<"------"<<setw(8)<<"--------"<<setw(8)<<"------"<<endl;
}
void results (int quantity, float unitPrice, double tot)
{
cout<<quantity<<setw(8)<<unitPrice<<setw(8)<<tot<<endl;
}