Q
qianz99
Hello I am writing a big program.
I have define a struction
typedef struct
{
int Name;
int Year;
}birth;
Now I'd like to define a sequence of A, such as
Birth A = {1,1990}
Birth B = {1,1991}
.....
I hope to use #define so that A,B can be used as constant.
Can I?
and is it a good way of programming?
Thanks
I have define a struction
typedef struct
{
int Name;
int Year;
}birth;
Now I'd like to define a sequence of A, such as
Birth A = {1,1990}
Birth B = {1,1991}
.....
I hope to use #define so that A,B can be used as constant.
Can I?
and is it a good way of programming?
Thanks