open the command window first.
Start -> run
type cmd, press return
then run your program by typing the name of the exe you have created. make sure you are in the same directory as the file you have created or that the directory is in the path variable
your program will run showing results and the window will not quit until yuo type exit at the command line