How can I enter an input without causing the code to stop executing? I have been searching for an answer during the last 20 minutes without result.
cin >>
use kbhit().
while(1) { if(kbhit()) { // do what ever you want. } }