movedata.c
来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 17 行
C
17 行
#include <mem.h>
#include <conio.h>
#include <stdio.h>
#include <dos.h>
#define video 0xB800
char buf[80*25*2];
void main(void)
{
printf("Press any key to clear screen\n");
getch();
movedata(video, 0, FP_SEG(buf), FP_OFF(buf), 80*25*2);
clrscr();
printf("press any key to restore screen\n");
getch();
movedata(FP_SEG(buf), FP_OFF(buf),video,0,80*25*2);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?