Hey bucky!

i am a newbie at c++ programming and i need help asap! so i am making a program where i want to make a user stop a for loop by keyboard input. i used kbhit() but that only works with one for loop, only one input. however, i have mulitple for loops which i want to break; by keyboard input. i can't use cin because i don't want the loop to pause for user input.

in brief, i have a bunch of for loops. for wach for loop i want it to run but break if a key in the keyboard is hit. thanks.