   stopping the window closing.
  hii think this website is greati am very new to programming and learning c++ using a book i got.i have created a small program where you enter your name and age,but as soon as you press enter after putting in your age, the rest of the infomation flashes and closes with out showing the rest of the program.any help on stopping the program closing untill you cross it off.thanks   
  #include <iostream> and make a std::cin.get() call at the end of main(). This will cause the program to wait for Return to be pressed before the it continues.   ;Quote:any help on stopping the program closing untill you cross it off."cross it off"?;  you could also add a system("PAUSE")...or press the red ! instead of the debug button...  This puts a pause at the end but does not attach to the process.   ;  thanks std::cin.get() doesnt work as when i press enter for the last bit of data it closes down,by 'cross it of' i mean pressing the x in the top corner,and the system("pause") works thanksand i dont know what you mean by red !,thanks for help   