How to use a double subscripted array to represent a chess board

Just like the title.thanks!
char Board[8][8];
but i think i need to actually create a chess board with "|"and"--"
You can use nested for loops to do that.

I would imagine nested for loops is the way you are going to do everything with your board.
but then why do i still need to use array?
You use the for loops to access the array.
I was thinking if i use nested for loop,i could do this without using the array,is that right?
You could print the outline of the board, but you need the array to store which pieces occupy which spots on the board.
that sounds reasonable.
I will try it.thanks for your help!
Topic archived. No new replies allowed.