Wy am i getting this error message?
Code:
#include<iostream>
#include<string>
using namespace std;
int main()
{
double money;
string food;
int quantity;
double price = 1.25;
double total;
char reply = 'y';
do
{
cout << "Enter Food:";
getline(cin,food);
if (food == "tacos")
{
cout << "How Many: ";
cin >> quantity;
total = price * quantity;
cout << "Total :"<< total<<endl;
cout << "More Items: ";
cin >> reply;
}
else
{
cout << "No Item Found" <<endl;
} while (reply == 'y' || reply == 'Y');
}
return 0;
}
error message
Code:
error C2059: syntax error : 'return'