Jump to content

  • Log In with Google      Sign In   
  • Create Account


Posted 28 May 2013 - 05:48 AM

I do it like this:

#include <iostream>
using namespace std;

int main()

cout << "Hello world!" << endl;

//cin.sync();//that's for later - when you have input in your program
//and you need to clear the buffer after using a cin>> 
return 0;


Posted 28 May 2013 - 05:41 AM

Add at the end of main - just before return 0;

cin.sync(); //if you don't have input (cin>>) in your program you can get away with not adding this one