I'm trying to end this while loop by hitting ENTER key, just so i don't have exit the program by closing the program.
no i am not an idiot who doesn't know break, and i do not want the function to require a person at the console every time the loop needs to reoccur.
code:
i want this to function as a timer, and was wondering if some1 knows how to do this, because i have no clue.
note: this is on a mac so xcode is my ide.
It might be possible to do this with threads but other than that there is no way to do this in just standard C++. You might want to use some library like ncurses to do this.