-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPORT.C
45 lines (43 loc) · 853 Bytes
/
PORT.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include<dos.h>
#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main()
{
//system("cls");
int x=200,y=200,gd=DETECT,gm;
initgraph(&gd,&gm,"");
putpixel(x,y,YELLOW);
putpixel(x+1,y-1,YELLOW);
putpixel(x-1,y-1,YELLOW);
putpixel(x,y-2,YELLOW);
putpixel(x+1,y-2,YELLOW);
putpixel(x+2,y-1,YELLOW);
putpixel(x+3,y,YELLOW);
putpixel(x+4,y+1,YELLOW);
putpixel(x+5,y+2,YELLOW);
x=200;
y=196;
putpixel(x,y,14);
putpixel(x,y-1,14);
putpixel(x,y-2,14);
putpixel(x,y-3,14);
putpixel(x+1,y-3,14);
putpixel(x+2,y-3,14);
putpixel(x-1,y-3,14);
putpixel(x-2,y-3,14);
putpixel(x-1,y,14);
putpixel(x-2,y-1,14);
putpixel(x-3,y,14);
putpixel(x-2,y+1,14);
putpixel(x,y+1,14);
putpixel(x,y+2,14);
putpixel(x+1,y-1,14);
putpixel(x+2,y,14);
putpixel(x+2,y+1,14);
//putpixel(x+5,y+2,YELLOW);
//putpixel(x+1,y-2,YELLOW);
getchar();
closegraph();
restorecrtmode();
}