Thread: TOTAL newb
View Single Post
  #12 (permalink)  
Old 05-19-2008, 04:01 PM
Zael's Avatar   
Zael Zael is offline
Newbie
 
Join Date: Jan 2008
Posts: 11
Credits: 0
Rep Power: 0
Zael is on a distinguished road
Default Re: TOTAL newb

Code:
#include <stdio.h>
#include <stdlib.h>

main ()
{
     printf("hello, world/n");
     system("pause");
}
The italic part is what you actually need. Even as your program works well, the conclusion is that it's very short and it's execution can't be seen, or it simply blinks for a milisecond, as you said.

The system("pause"); part simply means a pause in the console. It actually waits for you to tap something on keyboard in order to continue..

P.s. Please note the bolded /n part as you entered it on wrong way.. Those are to different chars, which means /n is not the same as \n.
If I understood correctly, you wanted a new line, and it's correct to use only \n.
Reply With Quote