Thread: TOTAL newb
View Single Post
  #10 (permalink)  
Old 05-17-2008, 07:05 PM
soku11 soku11 is offline
Newbie
 
Join Date: May 2008
Location: Warsaw, Poland
Posts: 12
Credits: 0
Rep Power: 0
soku11 is on a distinguished road
Default Re: TOTAL newb

Quote:
Originally Posted by chili5 View Post
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
Reply With Quote

Sponsored Links