⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kbhit.txt

📁 这是DOS系统的源代码,汇编写的,值得看看,对开发操作系统的人员有价值
💻 TXT
字号:
SUMMARY  kbhit zgetch

#include <tools.h>

int kbhit();

char zgetch();

DESCRIPTION

kbhit returns 0 if a character from the keyboard is available otherwise
non-zero is returned.

zgetch returns the next character typed.  Input is NOT automatically echoed.

RETURN VALUE


IMPLEMENTATION


SEE ALSO


NOTE


EXAMPLE

#include <tools.h>

/*  #include <stdio.h> is NOT needed for access to putchar from C library
 *  because including tools.h automatically includes <stdio.h>
 */

main(c, argv)
int c;
char *argv[];
{
    char ch;

    while (ch != 's') {
	ch = '.';
	 if (!kbhit())
	    ch = zgetch();
	 putchar(ch);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -