查找某些给定数字的所有组合的方法 [英] Method of Finding the all combination of some given numbers

查看:68
本文介绍了查找某些给定数字的所有组合的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查找某些给定数字的所有组合的c代码是什么?我想获得所有组合.

What is the c code for finding the all combinations of some given numbers?? I want to get the all combinations.

推荐答案

您的意思是: http://en.wikipedia.org/wiki/Combinations [^ ]? (我希望您或您的老师使用一个术语,而不是类似的或随机的英语单词来命名问题.:-))这是名为 Combinatorics http://en.wikipedia.org/wiki/Combinatorics [
—SA
Do you mean this: http://en.wikipedia.org/wiki/Combinations[^]? (I hope you or your teacher used a term, not a similar or random English word to name the problem. :-)) This is a part of pretty simple branch of mathematics called Combinatorics http://en.wikipedia.org/wiki/Combinatorics[^].

This stuff is simple enough to write your C code just "by definition", which you can clearly formulate for yourself even if you read nothing else but just the referenced article. Also, it''s very useful to solve the problem all by yourself. You''re given a valuable chance to learn something through exercises like this one — don''t waste your time, use it well. This effort will pay off soon enough.

—SA


与数学公式相同;尝试在纸上弄清楚,然后将其转换为代码.
It''s the same as the mathematical formula; try figuring it out on paper and then convert it into code.


这篇关于查找某些给定数字的所有组合的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆