c++.windows.32-bits - ok now i realy do need help
ok i have included a copy of the compiler log and my code if any one can help it would make me very happy for XMAS :P P.S im new to this so dont beat me up to bad if its somthing very simpel thnx for any helkp you all can give me Compiler: Default compiler Executing g++.exe... g++.exe "D:\apps\Burger_World.cpp" -o \apps\Burger_World.exe" -I"C:\Dev-Cpp\include" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" D:\apps\Burger_World.cpp: In function `int main(...)': D:\apps\Burger_World.cpp:27: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:28: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:29: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:30: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:31: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:32: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:66: `eles' undeclared (first use this function) D:\apps\Burger_World.cpp:66: (Each undeclared identifier is reported only once D:\apps\Burger_World.cpp:66: for each function it appears in.) D:\apps\Burger_World.cpp:66: parse error before `{' D:\apps\Burger_World.cpp: At top level: D:\apps\Burger_World.cpp:72: syntax error before `{' Execution terminated #include <iostream.h> void main() { int choice1 = 0; int choice2 = 0; int choice3 = 0; int choice4 = 0; int choice5 = 0; int choice6 = 0; int choice7 = 0; int choice8 = 0; int choice9 = 0; int choice10 = 0; int choice11 = 0; int choice12 = 0; const int A = 2.99; const int B = 1.99; const int C = .59; const int D = .99; const int E = .59; const int F = .99; const int yes = 1; const int no = 0; const int quit = 2; int yesorno = 0; Z: cout << "Welcom to burger world" << endl << endl; cout << "A. Chease Burge's $2.99 each." << endl; cout << "B. Burger no Chease $1.99 each." << endl; cout << "C. Small Fries $.59" << endl; cout << "D. Larg Fries $.99" << endl; cout << "E. Small Drink $.59" << endl; cout << "F. Larg Drink $.99" << endl; cout << "Enter the number of your selection" << endl; cin >> choice1; cout << "Your choice is" << choice1 << endl; cout << "If this is right and you would like to add another item" << endl; cout << "enter yes and enter no if your happy with you order" <<endl; cout << " and type quit if you want to change your order" <<endl; cin >> yesorno; if ( yesorno == 1 ) cout << "Enter the number of your selection" << endl; cin >> choice2; cout << "Your choice is" << choice2 << endl; cout << "If this is right and you would like to add another item" << endl; cout << "enter yes and enter no if your happy with you order" <<endl; cout << " and type quit if you want to change your order" <<endl; cin >> yesorno; eles { if ( yesorno == 0 ) cout << "your total is" << choice1 << endl; cout << "Thank you come agean" << endl; goto Z; } eles { if ( yesorno == 2 ) goto Z; }
Dec 23 2002
"eles" should be spelled "else". -Walter "John Doe" <chos worldpath.net> wrote in message news:au8r6c$18go$1 digitaldaemon.com...ok i have included a copy of the compiler log and my code if any onecanhelp it would make me very happy for XMAS :P P.S im new to this so dont beat me up to bad if its somthing very simpel thnx for any helkp you all can give me Compiler: Default compiler Executing g++.exe... g++.exe "D:\apps\Burger_World.cpp" -o \apps\Burger_World.exe" -I"C:\Dev-Cpp\include" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" D:\apps\Burger_World.cpp: In function `int main(...)': D:\apps\Burger_World.cpp:27: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:28: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:29: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:30: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:31: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:32: warning: initialization to `const int' from `double' D:\apps\Burger_World.cpp:66: `eles' undeclared (first use this function) D:\apps\Burger_World.cpp:66: (Each undeclared identifier is reported only once D:\apps\Burger_World.cpp:66: for each function it appears in.) D:\apps\Burger_World.cpp:66: parse error before `{' D:\apps\Burger_World.cpp: At top level: D:\apps\Burger_World.cpp:72: syntax error before `{' Execution terminated #include <iostream.h> void main() { int choice1 = 0; int choice2 = 0; int choice3 = 0; int choice4 = 0; int choice5 = 0; int choice6 = 0; int choice7 = 0; int choice8 = 0; int choice9 = 0; int choice10 = 0; int choice11 = 0; int choice12 = 0; const int A = 2.99; const int B = 1.99; const int C = .59; const int D = .99; const int E = .59; const int F = .99; const int yes = 1; const int no = 0; const int quit = 2; int yesorno = 0; Z: cout << "Welcom to burger world" << endl << endl; cout << "A. Chease Burge's $2.99 each." << endl; cout << "B. Burger no Chease $1.99 each." << endl; cout << "C. Small Fries $.59" << endl; cout << "D. Larg Fries $.99" << endl; cout << "E. Small Drink $.59" << endl; cout << "F. Larg Drink $.99" << endl; cout << "Enter the number of your selection" << endl; cin >> choice1; cout << "Your choice is" << choice1 << endl; cout << "If this is right and you would like to add another item" <<endl;cout << "enter yes and enter no if your happy with you order"<<endl;cout << " and type quit if you want to change your order" <<endl; cin >> yesorno; if ( yesorno == 1 ) cout << "Enter the number of your selection" << endl; cin >> choice2; cout << "Your choice is" << choice2 << endl; cout << "If this is right and you would like to add another item" << endl; cout << "enter yes and enter no if your happy with you order"<<endl;cout << " and type quit if you want to change your order" <<endl; cin >> yesorno; eles { if ( yesorno == 0 ) cout << "your total is" << choice1 << endl; cout << "Thank you come agean" << endl; goto Z; } eles { if ( yesorno == 2 ) goto Z; }
Dec 23 2002