Add ege5.cpp

This commit is contained in:
daleclack 2020-09-24 07:35:28 +08:00 committed by GitHub
parent 0e539b3740
commit 4561de99fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

18
ege/ege5.cpp Normal file
View File

@ -0,0 +1,18 @@
#include<stdio.h>
#include<graphics.h>
int main(){
initgraph(400,300);
setbkcolor(BLUE);
setcolor(BLACK);
setfont(12,0,"SimSum");
setbkmode(TRANSPARENT);
outtextxy(40,90,"Text1");
setfillcolor(BLACK);
bar(0,0,70,20);
setcolor(WHITE);
setfont(15,0,"SimSum");
setbkmode(TRANSPARENT);
rectprintf(0,0,60,15,"Text2");
getch();
return 0;
}