The console doesn't do this simply. You can do it by making your own windowed application or you'll have to forget everything in <cstdio> or <iostream> and use a curses library.
A curses library will give you the ability to print certain characters at certain coordinates but it means you'll have to do a lot of low-level stuff every time you want to print something.