>>954
C#なんだけどarraylistでうまくいかなかったんだよー。
だかあらdictionaryってのを試してるんだけど。

これはいったい何が悪いのでしょうか?

// 入力履歴を保存する配列を宣言
Dictionary<int,ulong> CMDC= new Dictionary<int, ulong>(59);

// 配列の初期化
for(int i=INPUT_COUNT-1;i>0;i--)
{
CMDC.Add(i,0);
}

// 配列を1ずつ動かす
for(int i=59;i>0;i--)
{
CMDC.Add(i, (CMDC[i-1]));←ArgumentException: An element with the same key already exists in the dictionary.
System.Collections.Generic.Dictionary`2[System.Int32,System.UInt64].Add (Int32 key, UInt64 value)
versus.Update () (at Assets/versus.cs:170)

}

// 配列先頭に要素の追加
CMDC.Add(0, inputp1);