Quote:
Originally Posted by chili5
Code:
#include <stdio.h>
#include <iostream>
using namespace std;
main ()
{
printf("hello, world/n");
cin.get();
}
This is what I do, to get it to wait for user input, use cin.get();
|
Personally, I dont like mixing languages, especially I/O functions. And further working on this code can cause strange behavior when mixing cin with scanf or cout with printf. But its my subjective opinion
