본문 바로가기
C

C언어 콘솔에서 커서 이동하기

by GGoris 2013. 6. 11.
반응형

#include <windows.h>

 

void gotoxy(int x, int y)

{

     COORD Cur;

     Cur.X=x;

     Cur.Y=y;

     SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),Cur);

}

반응형

'C' 카테고리의 다른 글

[애러잡기] error c2275  (0) 2013.06.20
C언어 #pragma  (0) 2013.06.13
C언어 콘솔창의 스크롤바 제거하기  (0) 2013.06.11
C언어 콘솔에서 커서 좌표 가져오기  (0) 2013.06.11
C언어 텍스트 색, 텍스트 배경색 변경  (0) 2013.06.11

댓글