1

我需要以两个模式排列和组合 3 个数字/字符我的意思是我想要

{1, 1}
{1, 2}
{1, 3}
{2, 2}
{2, 3}
{3, 3}

从 1、2、3 输入输出我在论坛上找到以下代码链接是 唯一的 Set 组合

通过休耕作者

https://stackoverflow.com/users/933416/nmclean

问题是当我调用这个函数时它显示错误

GetCombinationsWithReplacement({1, 2, 3}, 2):

错误是

An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.VisualBasic.dll

我想在文本框或列表框中显示结果提前谢谢

4

0 回答 0