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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.