Help
Advanced Member level 2
Hi,
Anyone know how to define the enum on global use? Example:
I try to put the whole code inside the .H file but the code can't done it...
How to use enum in multiple .C file? Please give example code.
Thank You.
Ya. I already got the answer. Add the extern in front of thing then put this line thing things; which you like to use at .C.
Good Luck.
Anyone know how to define the enum on global use? Example:
Code:
typedef enum{APPLE, BALL, CAT}thing;
thing things;
I try to put the whole code inside the .H file but the code can't done it...
How to use enum in multiple .C file? Please give example code.
Thank You.
Ya. I already got the answer. Add the extern in front of thing then put this line thing things; which you like to use at .C.
Code:
typedef enum{APPLE, BALL, CAT}thing;
extern thing things;
Good Luck.