title: How do you send an input into a continuous loop? (C++)
body: <p>I have a problem, lets say I have a continuous while loop, and inside there is a variable x that is used in some calculation. How do I send an input from the keyboard to the loop to change the variable x within the loop without stopping the loop in C++? 
  Thanks</p>