Is it possible to have an array as a class member? It is part of my Wumpus Hunt exercise.
I want to do the following:
class Room {
blah blah;
};
int main() {
for (i = 0; i < 3; i++) {
Room adjacent[i];
blah blah;
}
My compiler is not letting me do that. It warns that the variable must be constant.
Thanks in advance.