Thursday, 19 September 2013

Visual C , Arrays as field variables

Visual C , Arrays as field variables

I'm writing a program for opinion poles and I use the class 'Person',
class Person
{ protected: //field variables
int a; //just an example without importance
...
int answer[Nquestions]; //Nquestions is a constant. answer = {0,2}.
public: //constructor + methods
};
The compiler doesn't accept the array. 'Mixed types non supported', it
says. Is there a workaround of this problem?
Thanks and regards
Uwe

No comments:

Post a Comment