I have huuuuuuuuuuuuuge trouble with this code.
I get 10 errors!
Code:#include <windows.h> #include <iostream.h> 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


