Anyway, How do I create delay, e.g)I want some one to wait 5 seconds then press any key, but if they press a key within 5 seconds it will cout << "NO".
Also, I'm creating a text game and i wanted to make a story for it and I have my menu and I'm about to type up the story for it but i don't want to have 30 lines of text for me to scroll through everytime i want to go towards the bottom. So my question is, do i make a .h file or a .cpp file to put the text in and how do i make the main file open up the .h/.cpp file?
a part of the code where i want to insert the story:
char storychoice(2); system ("CLS"); cout << "New Game: Play Introduction?\n 1. Yes\n 2. No\n 3. Back\n\n"; cin >> storychoice; >>> This is where i want it to open the story <<<