📄 caption.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -