아래는 3차원 Array 선언 방법을 보여주는 샘플 코드입니다. 조금 헷갈릴 수 있는데, 잘 살펴보시기 바랍니다. namespace ArraySample { class Program { static void Main(string[] args) { // An example of a three-dimensional array: int[, ,] array3D = new int[2, 3, 2] { { { 1, 2 }, { 1, 2 }, { 1, 2 } }, { { 1, 2 }, { 1, 2 }, { 1, 2 } } }; } } }
Array 선언 방법과 마찬가지로 Multidimensional Array 선언 방법도 몇가지가 있습니다. 아래는 Multidimensional Array 선언 방법을 보여주는 샘플 코드입니다. namespace ArraySample { class Program { static void Main(string[] args) { // Multidimensional Array int[,] array1; array1 = new int[2, 3]; int[,] array2 = new int[2, 3]; int[,] array3 = new int[2, 3] { { 1, 2, 3 }, { 4, 5, 6 } }; int[,] array4 = new int[,] { { 1, 2, 3 }, { 4, 5, 6 } }; in..
C#에서 array를 선언하는 방법은 몇가지가 있습니다. 아래는 int array를 선언하는 방법을 보여주는 샘플 코드입니다. namespace ArraySample { class Program { static void Main(string[] args) { // Array int[] aArray; aArray = new int[10]; int[] bArray = new int[5]; int[] cArray = new int[3] { 1, 2, 3 }; int[] dArray = new int[] { 1, 2, 3, 4, 5 }; int[] eArray = { 1, 2, 3, 4, 5 }; } } }
- Total
- Today
- Yesterday
- iTextSharp
- c#
- 유틸리티
- download.com
- READYSTATE_COMPLETE
- ScreenHunter
- registry
- AxWebBrowser
- Automation
- Phalanger
- Regular Expressions
- jre
- Service pack
- AdSense숨기기
- 애드센스감추기
- tagREADYSTATE
- windows
- Sample Code
- autohotkey
- Microsoft
- DotNetMagic
- iText
- Rollback Rx
- WinAutomation
- AdSense감추기
- .net framework
- 스크린캡쳐
- 애드센스숨기기
- java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |