managing typical black dos output screen in c++
hello everyone. i am new in c & c++. i want to know is their any built in function in c++(i am using dev c++) to print output vertically on o/p screen.
for ex:-
at first i want to print(1,2,3 vertically and then a message horizontally)
1
2
3
three elements
and after that
4
5
6
7
four elements
but the problem is i want 4 and 1 at the same horizontal level.so the net o/p will be
1 ----------------- 4
2 ----------------- 5
3 ----------------- 6 //-------- represents space
three elements ---- 7
------------------- four elements.
i know using \n or endl i can go to a new line but the problem is how to go back to the top.