using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.IO;
using System.Xml;
namespace CSharpTest
{
class B
{
static void Main(string[] args)
{
List<string> list = new List<string>();
for (int i = 0; i < 6; i++)
{
list.Add(i.ToString());
}
C(list, 3);
Console.WriteLine("---------------------");
A(list, 0, 4);
}
/// <summary>
/// 对数组进行组合操作,选取 selectCount 个元素进行组合
/// </summary>
/// <param name="lsArray">即将进行组合操作的数组</param>
/// <param name="selectCount">选取的元素的个数</param>
static void C(List<string> lsArray, int selectCount)
{
int totolcount = lsArray.Count;
int[] currectselect = new int[selectCount];
int last = selectCount - 1;
for (int i = 0; i < selectCount; i++)
{
currectselect[i] = i;
}
while (true)
{
评论1
最新资源