+ 3
How to use gotoxy function in c++?
I want to jump around in c++ and I need this code to make my projects looks good please help me whit this function!!! how can I use it? please explain with an example
3 Respostas
+ 5
As far as I know, gotoxy() is a standard C function defined in <conio.h>, but it may not work in ANSI C compilers such as Dev-C++.
Anyways, gotoxy() function is actually used to print strings at different parts of the console by specifying the console coordinates to alter the console cursor. The full syntax of gotoxy() is:
gotoxy(int, int), where two int values correspond to x and y (coordinates).
e.g.
gotoxy(5, 3);
cout << "Hello World";
// prints "Hello World" at coordinate (5, 3)
+ 3
If it is not working on dev c++ then which function is used for defining coordinates in dev c++.
Please write it syntax
+ 1
thanks