array of class pointers issue

Why my compiler rejecting this? I though this is how class pointers were defined

1
2
3
4
5
6
CLetter* qPointers[126];
  qPointers [0] = &qCB;
  qPointers [1] = &q1;
  qPointers [2] = &q2;
  qPointers [3] = &q3;
  qPointers [4] = &q4;
Depends on how qCB and all the others are defined.

PS: Putting the addresses of local objects into an array doesn't make much sense. Or rather, I can't think of a situation in which it would make sense.
Topic archived. No new replies allowed.