K
Kenneth Lantrip
code ================
const int Population = 50000;
typedef struct {
int IQ;
int Persistance;
int Account;
int AccStmt;
int Recruiter;
} pplstrk;
static pplstrk Person[Population];
============= endcode
gcc compile error:
pscam.c:25: error: variable-size type declared outside of any function
Is that not the way is supposed to be done? Did I learn a wrong way of
doing it?
Thanks.
const int Population = 50000;
typedef struct {
int IQ;
int Persistance;
int Account;
int AccStmt;
int Recruiter;
} pplstrk;
static pplstrk Person[Population];
============= endcode
gcc compile error:
pscam.c:25: error: variable-size type declared outside of any function
Is that not the way is supposed to be done? Did I learn a wrong way of
doing it?
Thanks.