C examples for Data Type:enum
Have the enumerators to have integer values that match the card values with ace as high.
#include <stdio.h> int main(void) { enum FaceValue { two=2, three, four, five, six, seven, eight, nine, ten, jack, queen, king, ace}; enum FaceValue today = three; /* w ww .j a v a2 s .c om*/ printf("%d\n",today); return 0; }