X
xianwei
when i complier program include the following line, the program will
tell me
error: variable-size type declared outside of any function
const int TSIZE = 45;
const int FMAX = 5;
typedef struct {
char title[TSIZE];
int rating;
} film;
when i changed the
const int TSIZE = 45;
to
#define TSIZE 45
then program be well
Is there have anyone tell me why?
tell me
error: variable-size type declared outside of any function
const int TSIZE = 45;
const int FMAX = 5;
typedef struct {
char title[TSIZE];
int rating;
} film;
when i changed the
const int TSIZE = 45;
to
#define TSIZE 45
then program be well
Is there have anyone tell me why?