C # 2.0 Learning - Array

xiaoxiao2021-04-08  303

Compilation and execution:

CSC arrays.cs

arrays

arrays.cs: // Copyright (C) Microsoft Corporation All rights reserved // arrays.csusing System; class DeclareArraysSample {public static void Main () {// Single-dimensional array int [] numbers = new int [5].. ; // Multidimensional Array String [,] name = new string [5,4]; // array-of-arrays (jagged array) Byte [] [] score = new byte [5] [// Create the jagged Array for (INT i = 0; i

转载请注明原文地址:https://www.9cbs.com/read-132887.html

New Post(0)