Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

2D dynamic bool array?

Name: Anonymous 2006-01-03 16:44

I want to create a 2D dynamic bool array (or char is fine too). I'm doing the n-queens problem and I've figured everything out except for this part. Any help?

Name: Anonymous 2006-01-03 20:58

>>1
char a[8][8] is fine too, but read >>3. int a[8] is a better solution; make that cols and a[n] is the row it's in or -1. Use ints because they'll be aligned and you want that.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List