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";
}
Printable View
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
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.