📄 noname01.cpp
字号:
#include<iostream.h>
#include<graphics.h>
#include<conio.h>
#include<math.h>
#include<dos.h>
#include<stdio.h>
#include<stdlib.h>
void call();
void main()
{
int gm=VGAHI,gd=VGA,r=0;
initgraph(&gd,&gm,"c:\\tc\\bgi");
char ch;
char *c;
int lt=0,rt=0;
for(int t=0;t<7;t++)
{
rectangle(95+lt,75,135+rt,105);
// rectangle(125,75,155,105);
lt=lt+40;
rt=rt+40;
}
for(;;)
{
fflush(stdin);
fflush(stdout);
ch=getch();
c=&ch;
moveto(105+r,65);
settextstyle(TRIPLEX_FONT,0,4);
setcolor(24);
outtext(c);
r+=40;
if(*c=='\r')
{
break;
}
}
call();
getch();
}
void call()
{
int lt=0,rt=0;
for(int t=0;t<7;t++)
{
setfillstyle(1,BLACK);
bar(98+lt,76,132+rt,103);
lt=lt+40;
rt=rt+40;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -