hey, if i want a user to press a keyboard key(like "k") anytime during a loop so something will happen in addition to everything else in the loop,
how do i do that?
like
1 2 3 4
for(int a=0; a<100; a++){cout<<"somthing";
//if user press K
//cout<<"more something";
}