C & C++ 관련 gotoxy Real_G 2008. 6. 22. 14:17 반응형 #include <windows.h> #include <stdio.h> void gotoxy(int xpos, int ypos) { COORD scrn; HANDLE hOuput = GetStdHandle(STD_OUTPUT_HANDLE); scrn.X = xpos; scrn.Y = ypos; SetConsoleCursorPosition(hOuput,scrn); } int main() { gotoxy(5,5); printf("hoho"); return 0; } 콘솔프로그래밍 할 때 스크린에 원하는 위치에 커서를 놓는 방법API를 이용해야 한다. 반응형