I've made this work before, but now when I try the hello world program and use start without debugging it just says the "Press any key to continue..." message.
Code:#include <iostream> using namespace std; int main() { cout << "Hello World"; }
I've made this work before, but now when I try the hello world program and use start without debugging it just says the "Press any key to continue..." message.
Code:#include <iostream> using namespace std; int main() { cout << "Hello World"; }
add the "<< endl" part to the end
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
Thanks, it works now.
Lol, how the hell does endl fix that, ???
endl is a constant that tells the object cout to flush the buffer and move to the next line. if the buffer is not flushed, it won't make it to the screen.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter