Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
#include <stdio.h>main(){ printf("Hello, World!\n"); return 0;}
#include <stdio.h>int x,y;main(){ for ( x = 0; x < 10; x++, printf( "\n" ) ) for ( y = 0; y < 10; y++ ) printf( "X" ); return 0;}
#include <stdio.h>#include <iostream>using namespace std;int main(){ printf("Hello, World!\n"); cin.get();}
#include <stdio.h>#include <iostream>using namespace std;int main(){ printf("Hello, World!\n"); system("PAUSE"); return 0 ;}
another way is system("PAUSE") and then return 0;Code: [Select]#include <stdio.h>#include <iostream>using namespace std;int main(){ printf("Hello, World!\n"); system("PAUSE"); return 0 ;}system("PAUSE"); causes the command to ask you to press any key to continue.