81.c
来自「《C语言实战105例》,一些常用的c语言源代码」· C语言 代码 · 共 36 行
C
36 行
#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,®s,®s);
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,®s,®s);
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,®s,®s);
printf("\nthe mouse is hided\n");
getch();
return 1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?