Creating a maze

Hi
I need to create a structure given below. Can any one help me in creating this. I tried a lot using 2D arrays... if w=4 (columns) by h=3 (rows)

+-+-+-+-+
| | | | |
+-+-+-+-+
| | | | |
+-+-+-+-+
| | | | |
+-+-+-+-+

Please help me.....
Do you only need to print it, or do you need to represent it logical? For example by being able to access fields or similar.


Maikel
I need to print it .The vertical lines are not positioned properly.They need to have space in between and positioned below the plus signs
It sounds like it would be as simple as putting spaces in the output.

If it's a matter of getting functions to code it, you could easily change the output in whatever function from '|' to "| "

Even easier if it's hardcoded as a whole, just cout << "| | | | |"
Topic archived. No new replies allowed.