c语言怎么写一个在按下某一个键时,自动执行某一指令并且在关闭前无限循环的代码?
char ch;while ((ch = getchar()) != 结束字符){if (ch == 某个按键){while (1){死循环操作}}}