2012-05-17 24 views
-3

我很抱歉,但我不知道如何用英語解釋它。爲 - 鏈接運行到新的鏈接列表c#

我可以給喜歡的例子:

我鑰匙3並執行一個for循環,以新的3鏈表。

但如何?

int a = 3; 
for (int j = 0; j < a; j++)    
{      
    LinkedList<String> LinkList1 = new LinkedList<String>();   
} 
+0

你能提供你試過的代碼嗎? – pms1969

+0

你可以用一段代碼來解釋。 – TRR

+1

這是不明確的。您是否嘗試過使用您的母語進行谷歌翻譯? – dasblinkenlight

回答

2

我明明沒有下要ask.If你想for循環linkedlist你有一個基本的操作和環這裏鏈表的例子是什麼立場。
linkedlist example

0

這只是一個猜測而已;

int a = 3;    

List<LinkedList<string>> listOfLinkedLists = new List<LinkedList<string>>();    

for (int j = 0; j < a; j++) 
{ 
    listOfLinkedLists.Add(new LinkedList<string>()); 
} 
0

你想創建3個鏈表......對嗎?

所以最好的方法是創建一個列表數組。

 int i = 3; 
     List<String>[] listArray = new List<string>[i];