Assume the follow is the layout of a console screen
---------------------------------------------
| |
| |
|------------------|------------------------|
| x | |
|------------------|------------------------|
If I want to place a text on a certain area of the screen (for example Area
X in the above console screen), I use window(int, int, int, int) method.
Arguments are left, top, right and bottom coordinates of the window, and
after calling this method cout (or Console.out.writeline in C#) will print in
that console area until you create a new one. Point to remember:
window-arguments are not pixel coordinates, they refer to 80 colums and 24
rows of text. This makes placing text exactly inside (for example) an area
somewhat difficult... Header file is conio.h.