Hello, I've just started dev c++ but I have a question when I run this code the output window only blinks it doesnt stay up:
// this is a very easy program...but still
using namespace std; int main() { cout << "Game Over" << cout endl; }
Then I compile & run. My book doent say anything about it blinking.
Wait why it come out like that.. whatever
using namespace std; int main() { cout << "Game Over!" << endl; return 0; }
Before
return 0;
you need
system("PAUSE");
That is assuming you build a console application, ofc
hi,
I've just started dev c++ but I have a question when I run this code the output window only blinks it doesnt stay up:
using namespace std; int main() regards, phe9oxis, http://www.guidebuddha.com
Log in to post a comment.
Hello, I've just started dev c++ but I have a question when I run this code
the output window only blinks it doesnt stay up:
// this is a very easy program...but still
include <iostream>
using namespace std;
int main()
{
cout << "Game Over" << cout endl;
}
Then I compile & run. My book doent say anything about it blinking.
Wait why it come out like that.. whatever
include <iostream>
using namespace std;
int main()
{
cout << "Game Over!" << endl;
return 0;
}
Before
return 0;
you need
system("PAUSE");
That is assuming you build a console application, ofc
hi,
I've just started dev c++ but I have a question when I run this code the
output window only blinks it doesnt stay up:
// this is a very easy program...but still
include <iostream>
using namespace std;
int main()
regards,
phe9oxis,
http://www.guidebuddha.com