0

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


drawWindow(60, 25)
using only characater,

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Ancient Dragon
0

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 by Ancient Dragon: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.