0

I wanna write a program that prints a timetable in the terminal. In order to print a table using ASCII characters, I need to move the printing cursor to a particular coordinate of the terminal. for example, I want to have something like this in the output:

enter image description here

Could anybody help, please? Any other idea for printing this table is also accepted.

Mahdi
  • 17
  • 6
  • in case you were wondering you can use a simple function like ```void GoTo(int x, int y) { std::cout << "\033[" << x << ";" << y << "H"; }``` to get yourself going. – Hossein Oct 25 '20 at 09:54
  • @Rika could you please explain how does this piece of code work? – Mahdi Oct 25 '20 at 10:12
  • @Mehdi, please have a look [here](https://onlinegdb.com/Hk1gb1mdP) – Hossein Oct 25 '20 at 11:26

0 Answers0