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:
Anonymous2006-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.