HELP WITH OUTTEXTXY FUNCTON
How can i pass the direct integer values to outtextxy?
HELP WITH OUTTEXTXY FUNCTON
How can i pass the direct integer values to outtextxy?
AbHHinaay
Never heard of it.
What compiler and operating system are you using?
My best guess is that you want to print some text at a certain x,y cursor position. If using windows then read the FAQ.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
If it's this type of function, you'll need to put the int into the character string first. To do this, you could use sprintf().
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Here's a reproduced example I was working on before Hammer.Code:#include <stdio.h> #include <windows.h> void OutTextXY ( int x, int y); int main ( void ) { OutTextXY( 0, 45, "Hmm" ); return 0; } void OutTextXY ( int x, int y, char * text ) { COORD coord; coord.X = x; coord.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); printf(text); }
The world is waiting. I must leave you now.