So I am just beginning using c++..im learning through a c++ game programming book...and so i just finished chapter one, and now i want to create me little own text based adventure. So i made the script and it was all good...(also im using visual studio 2010) but when i debugged it and then ran the program, it would just close when i would hit the story part..i was using std::endl too...i dont know why it is closing out, anyone know?
using std::cin;
cin.flush(); //just in case there is stuff in the buffer already
cin.get(); //wait for the user to press enter
cin.ignore(); //i can never remember what this does but sure