需要在每個隊列中創建4個數組的隊列。C中的隊列隊列#
喜歡的東西:
Queue1[1] {int i1, int i2, int i3, int4}
Queue1[2] {int i1, int i2, int i3, int4} etc..
同爲隊列2
~~編輯~~
我想跟蹤,隨機生成的整數的。 使用帶有對象的鏈接列表結束。 所以我創建了一個包含我想要的所有整數的對象,然後調用一個鏈表。
LinkedList<RandomInts> Q = new LinkedList<RandomInts>();
使用:
Q.ElementAt(indexOfObject).Whatever();
的伎倆就好了。謝謝!
你熟悉的問候術語'new'創造和預先定義數組的大小..?這是谷歌是在那裏..請做谷歌搜索'隊列...等' – MethodMan
你有問題嗎? – Plutonix
爲什麼你使用一個隊列,如果你知道每次都會有4個整數,爲什麼不使用一個數組陣列 –