Hi,
i don't know why the hell i've problems with enumerations... i've got them never before...
Whats's wrong with my code?:
main.c
main.h
uli
i don't know why the hell i've problems with enumerations... i've got them never before...
Whats's wrong with my code?:
main.c
Code:
#include "main.h"
int main() {
return 0;
}
STRUCT_A a[] = {
{ENUM_A_1, ENUM_A_2, 5},
{ENUM_A_2, ENUM_A_1, 3},
};
main.h
Code:
#if !defined(MAIN_H)
#define MAIN_H
int main();
enum ENUM_A {
ENUM_A_1,
ENUM_A_2,
};
struct STRUCT_A {
ENUM_A e_a;
ENUM_A e_b;
int c;
};
extern STRUCT_A a[];
#endif
uli