I m not able to use gotoxy func. I m using code::blocks. I tried to use the following func definition too.
I m new to code::blocks...The only compiler I have used before is Turbo c++... Please help....
void gotoxy(int x, int y)
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_H ANDLE), coord);
So what happened when you tried to use the [above] function definition?
This what pops in the msg board....
||=== word img, Debug ===|
C:\Program Files (x86)\CodeBlocks\word img\main.cpp||In function 'void gotoxy(int, int)':|
C:\Program Files (x86)\CodeBlocks\word img\main.cpp|10|error: 'STD_OUTPUT_H' was not declared in this scope|
||=== Build finished: 1 errors, 0 warnings ===|
The name doesn't have a space in it :)
oh.U are right.