forked from ShortsKing/Kat-OS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kitty.c
40 lines (29 loc) · 759 Bytes
/
Kitty.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
//adds graphics.h and stdio.h to file
#include <graphics.h>
#include <stdio.h>
//function to draw circle
void draw_red_circle(void) {
//searches for a graphics driver
int i, j = 0, gd = DETECT, gm;
//passes three arguments to initgraph
initgraph(&gd, &gm, "");
circle(%d, %d, 10, rand());
//I do not know the purpose of this
getch();
//or this
closegraph();
}
int main() {
//defines x and y as two random intengers
int x = rand()
int y = rand()
//passes three arguments to initgraph
initgraph(&gd, &gm, "");
circle(x, y, 10);
//I do not know the purpose of this
getch();
//or this
closegraph();
return 0
}
// Compile as "Kitty"