+ 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

22nd Dec 2016, 4:48 AM
Sina Golizade
Sina Golizade - avatar
3 Respuestas
+ 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)
22nd Dec 2016, 9:41 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
If it is not working on dev c++ then which function is used for defining coordinates in dev c++. Please write it syntax
27th Jun 2020, 6:39 AM
Malik
Malik - avatar
+ 1
thanks
23rd Dec 2016, 5:04 AM
Sina Golizade
Sina Golizade - avatar