title: Is there a function that combines the functions kbhit() and a getch()?
body: <p>I want function that combines the functions <strong>kbhit()</strong> and <strong>getch()</strong>.<br>
  In other words, I want when the program works, if I pressed on <strong>'q'</strong> key the program stops without has stopped temporarily in order to receive the character as does getch() function .<br>
  I want to combine between <strong>kbhit()</strong> advantage and <strong>getch()</strong> advantage .  </p>
  
  <p>I hope you understood my purpose .</p>