guia03/ex42/ex42.c (384B)
1 #include <stdio.h> 2 3 #define LANG_DE 4 5 #ifdef LANG_ES 6 #include "include/LANG_ES.h" 7 #elif defined LANG_EN 8 #include "include/LANG_EN.h" 9 #elif defined LANG_DE 10 #include "include/LANG_DE.h" 11 #endif 12 13 typedef enum { JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC } month_t; 14 15 int main (void) 16 { 17 month_t month; 18 19 month = MAR; 20 21 printf("Month: %s\n", months[month]); 22 23 return 0; 24 }