[b]
hello!
what does this error mean in this program?
Error 1 error LNK2019: unresolved external symbol "double __cdecl calculateCharge(double)" (?calculateCharge@@YANN@Z) referenced in function _wmain F:\university\mabani computer\takalif\programs\asn12\asn12\asn12.obj
[b]#include "stdafx.h"
#include<iostream>
#include<iomanip>
using namespace std;
double calculateCharge(double);
int _tmain(int argc, _TCHAR* argv[])
{
double hours;
int i;
cout<<"Enter hours:\n";
cin>>hours;
cout<<"car"<<setw(10)<<"hours"<<setw(10)<<"charge\n";
for(i=1;i<=3;i++)
{
calculateCharge(hours);
cin>>hours;
}
double calculateCharge(double hours);
{
int i,x;
double hours,charge;
cout<<i<<setw(10)<<hours<<setw(10);
if(hours<3&&hours>0)
{
cout<<"2.00";
}
else
if(hours==24)
{
cout<<"10.00";
}
else
{
x=ceil(hours)-3;
charge=x*0.5;
cout<<charge+2;
}
}
}[/b][/b]