|
Header File
conio.h
Category
Console I/O Routines
Syntax
#include <conio.h>
void gotoxy(int x, int y);
Description
Positions cursor in text window.
gotoxy moves the cursor to the given position in the current text window. If the coordinates are in any way invalid the call to gotoxy is ignored. An example of this is a call to gotoxy(40,30) when (35,25) is the bottom right position in the window. Neither argument to gotoxy can be zero.
Note: Do not use this function for Win32s or Win32 GUI applications.
Return Value
None.
Ray 님이 쓰신 글 :
: printf()를 사용한 표준 출력 시에 \n을 찍으면
: 다음 라인으로 넘어가죠.
: 그런 후에 커서를 위로 옮길 수 있는 방법이 있나요?
: 그러니깐 몇 라인 위로 이동해서 이미 찍힌 다음 부터 또 출력할 방법이 있는지요...
:
: 이는 키보드의 이동키에 해당하는 문자 코드를 찍어주면 되는 거 아닐까 하는데요...
: 아스키 코드와 스캔 코드를 이용하면 이동키에 대한 입력은 인식할 수 있는데,
: 출력은 어떻게 하는 지 궁금하군요.
:
: Visual C++ 콘솔에서 코딩을 하는데, 아시는 분의 도움을 부탁드립니다.
|