forked from DOYULKIM/C_project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbook
More file actions
33 lines (27 loc) · 740 Bytes
/
book
File metadata and controls
33 lines (27 loc) · 740 Bytes
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
#include <stdio.h>
#include <conio.h>
#include <windows.h>
int main()
{
int x, y;
COORD pos = {1, 0};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
printf("<-: 커서 시작위치(%d, %d)", pos.X, pos.Y);
getche();
pos.X = 10;
pos.Y = 2;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
printf("<-: 커서 시작위치(%d, %d)", pos.X, pos.Y);
getche();
pos.X = 20;
pos.Y = 5;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
printf("<-: 커서 시작위치(%d, %d)", pos.X, pos.Y);
getche();
pos.X = 40;
pos.Y = 24;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
printf("<-: 커서 시작위치(%d, %d)", pos.X, pos.Y);
getche();
return 0;
}