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

📄 81.c

📁 C语言实战105例/王为青, 陈圣亮编著 北京-人民邮电出版社 2007 光盘源码及可运行程序 附注项:共汇集了105个实例
💻 C
字号:
#include <conio.h> 
#include <stdlib.h>
#include <dos.h>
#include <stdio.h>
int main()
{
	union REGS regs;
	int found; 
	clrscr();
	/* initialize mouse */
	printf("Initializing Mouse...\n\n");
	regs.x.ax=0;
	int86(0x33,&regs,&regs);
	found=regs.x.ax; 
	if(found==0) /* can not find mouse */ 
	{ 
	printf("initialize mouse error!"); 
	exit(1); 
	} 
	printf("Finished initializing!\n\n");
	/* show mouse */
	printf("Showing Mouse...\n");
	regs.x.ax=1;
	int86(0x33,&regs,&regs);
	printf("you can use the mouse.....\n\n");
	/* hide mouse */
	printf("Press any key to hide the mouse.\n");
	getch();
	regs.x.ax=2;
	int86(0x33,&regs,&regs);
	printf("\nthe mouse is hided\n");
	getch();
	return 1;
}

⌨️ 快捷键说明

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