caption.c
来自「《C语言程序设计教程、实验与练习》 源文件下载」· C语言 代码 · 共 37 行
C
37 行
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#include <string.h>
void main()
{
int i;
char caption[]="Are you ready?";
int right;
int x,len;
char ch;
clrscr();
_setcursortype(_NOCURSOR);
len=strlen(caption);
right=80-len;
textcolor(YELLOW);
gotoxy(1,12);
cprintf("%s",caption);
for(x=2;x<=right;x++)
{
gotoxy(x,12);
cprintf("%s",caption);
gotoxy(x-1,12);
cprintf(" ");
delay(100-x);
}
//add your codes down here
//add you codes up here
_setcursortype(_NORMALCURSOR);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?