List<string> list = new List<string>();
list.Add("A");
list.Add("B");
List<string> list1 = new List<string>();
list.Add("a");
list.Add("b");
for (int i = 0; i < list.Count; i++)
{
// print another list items.
for (int j = 0; j < list1.Count; j++)
{
Console.WriteLine("/" + list[i] + "/" + list1[j]);
}
}
我想这样编码string tmpS =+ list[i];
加入下一个列表项目togeter。打印列表项目
然后打印tmpS
但编译错误CS0023:运算符“+”不能被应用于类型“字符串”的操作数。
如何打印下面的所有项目。(任何种类是确定)
一个 机管局 抗体 AAB 阿坝 AB 阿坝州 ABB ABAB ABBA 乙 巴 了Bb Bab Bba
(The Caps number No swap。小字符应该交换。并始终按照Caps Numbers追加小字符。)
你确定Aab必须在AB部分? – bniwredyc 2009-12-25 08:27:56
你好。没有区别不同。只需要上面的所有组合。列表组合他的项目并将其项目与其他列表项目组合。 – 2009-12-25 08:34:46