c++之枚举问题口袋中有红黄蓝白黑5种颜色的球若干个。每次从口袋中任意取出三个球,问得到3中不通过颜色的球的可能取法。
#include "stdafx.h" #include<iostream> #include<iomanip> using namespace std; int main() { enum color{red,yellow,blue,white,black};//声明枚举类型color color pri; //定义co...
转载
2018-03-11 21:14:46 ·
6104 阅读 ·
1 评论