WPF - 所有可能的组合 [英] WPF - All possible combinations
本文介绍了WPF - 所有可能的组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要获得所有可能的货币组合来支付上限价格,但是将硬币数量限制为每个值最多3个单位(支付10欧元无效使用10个硬币) €1)
使用以下代码我得到的组合限制为每个硬币3个单位,但是如何修改代码以打印所有可能的组合?
I need to get all the possible combinations of currencies available to pay a ceiling price, but limiting the amount of coins to 3 units maximum of each value (to pay € 10 it is not valid the use of 10 coins of € 1)
With the following code I get a combination limited to 3 units per coin, but how can I modify the code to print all the possible combinations?
提前致谢。
推荐答案
这与WPF有什么关系? 听起来像是一个家庭作业问题。
What does this have to do with WPF? Pretty much sounds like a homework question.
这篇关于WPF - 所有可能的组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文