0,0 0,w-4 0,w
+------------------------------------------------------+---+
| My Window | x |
2,0+------------------------------------------------------+---+
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
+----------------------------------------------------------+
h, 0 h, w


drawWindow(60, 25)
using only characater,

put that picture in code tags and it will keep the spaces.

All you need to do is write the function with two simple loops. The outer loop counts the rows and the inner loop counts the columns. Then inside the inner loop call putchar() or printf() to print an 'X'. Don't forget the print '\n' at the end of each line.

Edited 7 Years Ago by Ancient Dragon: n/a

This article has been dead for over six months. Start a new discussion instead.