Hi.
I'm compiling with Dev C++ 4.0 Compiler.
When compiling the code below i get a parse error at end of input..
Its at line 50.
And theres no code on line 50.
If i write code at line 50, then the error occurs at line 51.
Please Help!
Code:#include <windows.h> #include <iostream> using namespace std; int main () { int money; int ihave; int lost; cout << "Hur mycket pengar har du?" << endl; cin>>ihave; cout << "Hur mycket pengar har du tjänat den här månaden?" << endl; cin>>money; cout << "Hur mycket pengar har du förlorat den här månaden?" << endl; cin>>lost; ihave+=money; ihave-=lost; if (ihave<=0) { cout << "KONKURS! KONKURS! KONKURS!" << endl; Sleep(2000); return 0; } else { cout << "Så här mycket pengar har du nu!" << endl; cout << ihave << endl; Sleep(2000); return 0; }



LinkBack URL
About LinkBacks


