(C언어) 커서 위치 지정하기: gotoxy(x, y)
이전 포스팅에서 작성했던 gotoxy() 함수를 조금 응용했습니다. #include #include #include #include void gotoxy(int x, int y) { COORD pos = { x - 1, y - 1 }; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos); } int main(void) { char* str[] = { "Computer", "Moniter", "Game", "Keyboard", "Heaven", "System", "Print", "Phone", "Hand", "Eye" }; int x, y, i, n; srand((unsigned)time(NULL)); system("cls"); for (i = ..