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