Got a Problem guys :( i try to make a something like a game,but i wanna to make:
When i press 2 the name of episode to be a diffrent :( because now whatever i press it do a same name and i don't know how to fix that :(
#include <iostream>
#include <string>
But When I Do this then i need to write a name to prints a down and when i write for example "ok" it says The Episode ok - Dark Insomnia how to do it to detect a name and do not need to write,i want a something like this:
Choose Episode (1-3):1
Dark Insomnia
The Episode - 1 - Dark Insomnia
that's what i want :( without pressing something after pressing 1 :(
that's what i want :( without pressing something after pressing 1 :(
You can't easily do that in console programs. The console is for IO streams. Console programs don't care what you type into the input device (your keyboard) until you stream it by pressing ENTER. You need to use event-based GUI packages to detect individual key presses.