-3

I am too confused with console screen. I am not able to figure out how to move cursor to random position. This is my code:

#include<iostream>
#include<conio.h>
main()
{
   cout<<"Hello World";
   return 0;
}

I want to move cursor to random position, not at the beginning after pressing Enter.

1 Answers1

0

There is no standard way to affect the terminal cursor in C++. So, the first step in implementing this is to figure out what system you are targetting, and what API it offers.

eerorika
  • 232,697
  • 12
  • 197
  • 326