枚举器与card值匹配的整数值

#include stdio.h int main(void) { enum FaceValue { two=2, three, four, five, six, seven,eight, nine, ten, jack, queen, king, ace};

编程学习网为您整理以下代码实例,主要实现:枚举器与card值匹配的整数值,希望可以帮到各位朋友。

#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;
  printf("%d\n",today);

  return 0; 
}
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐