J
Joe C
I'd like to have better control of text output to the console. I'm using
Windows and have a little (non-standard) function to help me out:
#include <windows.h>
void locate(int x, int y )
{
COORD cur = { x, y };
SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), cur );
}
Which is easy enough to use:
locate(x,y); cout << "text here";
However...(and this is why the question is relevant in this group)...
I would prefer to use cout like:
cout(x,y) << "text here";
Can anyone instruct me on how to do this?
Thanks,
Joe
Windows and have a little (non-standard) function to help me out:
#include <windows.h>
void locate(int x, int y )
{
COORD cur = { x, y };
SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), cur );
}
Which is easy enough to use:
locate(x,y); cout << "text here";
However...(and this is why the question is relevant in this group)...
I would prefer to use cout like:
cout(x,y) << "text here";
Can anyone instruct me on how to do this?
Thanks,
Joe