【C++】彩球问题

有一个袋子里装有三色彩球,期中红色球有3个,白色球有3个,黑色球有6个,问当从袋子中取出8个球时共有多少可能的方案,请经过编程来实现全部可能的方案编号输出在屏幕上。 #include"iostream.h" #include"stdio.h" void main() { int red; int white; int black; int i=0; for(red=0;red<=3;red
相关文章
相关标签/搜索