If your just trying to get some information on the screen and you wanna see what the program does, just toss this in at the end of the program, before the exit or return line:
char trash;
cin>>trash;
Then when the program runs, it will do whatever your program does up to the cin line, then just type in any character and hit enter and the program will end. Just do this for now until you learn more about programming and you can do something fancier later.