Is there a way to detect if a key has been pressed?

前端 未结 2 533
别跟我提以往
别跟我提以往 2021-01-27 02:51

I am compiling and executing my programs in cygwin on a windows computer. I am quite inexperienced in C but I would like a way to detect if a key has been pressed without prompt

2条回答
  •  难免孤独
    2021-01-27 03:25

    Most of Dos, Windows 3.x or win32 platform provide the file conio.h, but unix or linux Os is not provide this file normally. If you use unix or linux Os , you must download it on the internet By yourself. i hope my answer is useful for you.

提交回复
热议问题