C:\Users\Student13\Downloads\Untitled1.c
1 #include <windows.h>
2
3 void gotoxy(int x, int y) {
4 COORD c;
5 c.X = x;
6 c.Y = y;
7 SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), c);
8 }
9
10 void main(void) {
11 system("title Tabuleiro 16 por 16");
12 system("color 1e");
13
14 gotoxy(4,3);
15 printf("\xdb\xdb");
16 gotoxy(4,4);
17 printf("\xdb\xdb");
18 gotoxy(4,5);
19 printf("\xdb\xdb");
20 gotoxy(5,5);
21 printf("\xdb\xdb");
22 gotoxy(6,5);
23 printf("\xdb\xdb");
24 gotoxy(7,5);
25 printf("\xdb\xdb");
26 gotoxy(7,4);
27 printf("\xdb\xdb");
28 gotoxy(7,3);
29 printf("\xdb\xdb");
30 gotoxy(7,2);
31 printf("\xdb\xdb");
32 gotoxy(6,2);
33 printf("\xdb\xdb");
34 gotoxy(5,2);
35 printf("\xdb\xdb");
36 gotoxy(4,2);
37 printf("\xdb\xdb");
38
39 printf("\n\n\n\n\n");
40 }
Comentários
Postar um comentário