1 enum bar 2 { 3 one, 4 two 5 }; 6 7 enum bar foo; 8 bar()9 void bar() 10 { 11 switch (foo) 12 { 13 case one: 14 case two: 15 printf ("one to two\n"); 16 break; 17 } 18 } 19