spr3.c

来自「在以前公司DOS环境下」· C语言 代码 · 共 38 行

C
38
字号
#include<stdlib.h>
#include<conio.h>
#include<math.h>
#include"svgacc.h"
#include<stdio.h>

void main()
{ 
 int er;
 char text[]="press a key...";
 char buf[20];
 whichvga();
 res800();
 er=pageactive(0);
 fillpage(0);
 drwstring(1,10,0,text,0,300);
 sprintf(buf,"page 0");
 drwstring(1,10,0,buf,0,0);
 er=pageactive(1);
 fillpage(0);
 drwstring(1,12,0,text,0,300);
 sprintf(buf,"page 1");
 drwstring(1,12,0,buf,0,20);
 er=pageactive(2);
 fillpage(0);
 drwstring(1,13,0,text,0,300);
 sprintf(buf,"page 2");
 drwstring(1,13,0,buf,0,40);
 er=pageactive(0);
 er=pagedisplay(0,0,0);
 getch();
 er=pagedisplay(0,0,1);
 getch();
 er=pagedisplay(0,0,2);
 getch();
 restext();
}

⌨️ 快捷键说明

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