Invalid rank specifier: expected `,' or `]'
프로그래밍/C#2015. 2. 16. 11:46
Invalid rank specifier: expected `,' or `]'
에러 원인. C# 2차원 배열.
string[][] a;
a = new string[1][1];
수정(해결)
a = new string[1][];
a[1] = new string[1]; //-> a[1][1];
p.s.
응용
a = new string[2][];
a[0] = new string[10];
a[1] = new string[5];
'프로그래밍 > C#' 카테고리의 다른 글
[C#] StringBuilder (0) | 2015.07.07 |
---|---|
데이터 저장(PlayerPrefabs 사용, List 형식) (0) | 2015.02.22 |
java.lang.IllegalStateException: Could not execute method of the activity (0) | 2014.11.25 |
error CS1519: Unexpected symbol `for' in class, struct, or interface member declaration (0) | 2014.11.04 |
자기상위오브젝트(parent object)를 호출하는 방법! (0) | 2014.01.24 |