반응형 방향키 이동1 콘솔상에서 상자를 그려 위치 이동시키는 프로그램 #include #include #include #include #define ESC 27 #define UP 72 #define DOWN 80 #define LEFT 75 #define RIGHT 77 void textcolor(int i); void gotoxy(int x, int y); void box(int start_x, int start_y, int end_x, int end_y); void textcolor(int i) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), i); } void gotoxy(int x, int y) { COORD Pos = {x, y}; SetConsoleCursorPosition(GetStdHandle(STD.. 2007. 3. 23. 이전 1 다음 반응형