//The code contains 10 distinct syntax errors.
//Rewrite the code, correcting all syntax errors.
int _tmain(int argc, _TCHAR* argv[])
{
int numStamps{4} = {0,0,0,0};
ProcessFileData(numStamps);
DisplayDenominationTable(numStamps);
double totalCost = CalculateCost(numStamps);
cout << "Total cost of stamps is " << totalCost << " euro"<< endline;
return 0;
}
//this is my guess, so far(could not find all 10 errors) please correct me,where i am wrong:
int _tmain(int argc, _TCHAR* argv[])
{
int numStamps;
int numStamps[4] = (0;0;0;0);
ProcessFileData(numStamps);
DisplayDenominationTable(numStamps);
double totalCost = CalculateCost(numStamps);
cout << "Total cost of stamps is " << totalCost << " euro"<< endl;
return 0;
}
PulsarScript 0 Junior Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
PulsarScript 0 Junior Poster
Suzie999 245 Coding Hobbyist
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.