hello,
what i want to do is, display some text, in a certain position..?
like.. the user types the text at the bottom of the console, and it apears at the top?
do you understand?
i just realy dont know how to do it
Printable View
hello,
what i want to do is, display some text, in a certain position..?
like.. the user types the text at the bottom of the console, and it apears at the top?
do you understand?
i just realy dont know how to do it
>do you understand?
Yes.
>i just realy dont know how to do it
Neither do we. You didn't specify what OS/compiler you're using, so there isn't really much we can do to help.
ms visual studio 6
windows
Code:#include <windows.h>
void mygotoxy ( int x, int y )
{
COORD dwCursorPosition = { x, y };
SetConsoleCursorPosition ( GetStdHandle ( STD_OUTPUT_HANDLE ), dwCursorPosition );
}
Thank you very much
AdrianXW's site has a lot of tutorials for manipulating the console, too.