#include #include "ezwin.h" using namespace std ; void MyFunc0(const char c, enum color &b, enum color &f) { if (isdigit((int) c)) f = Blue ; else f = Yellow ; switch (c) { case 'A': case 'a': case 'E': case 'e': case 'I': case 'i': case 'O': case 'o': case 'U': case 'u': b = Red ; break ; default: b = Green ; } } void MyFunc1(const char c, enum color &b, enum color &f) { if ((((int) c)*13)%7 > 3) b = Blue ; else b = Yellow ; f = Magenta ; } void MyFunc2(const char c, enum color &b, enum color &f) { b = Blue ; f = Yellow ; } // Do not edit below this line ! void (*fTab[])(const char, enum color &, enum color &) = { MyFunc0, MyFunc1, MyFunc2, NULL } ;