namespace CuriousTabConsoleApplication { class Sample { public int func() { return 1; } public Single func() { return 2.4f ; } } class Program { static void Main(string[ ] args) { Sample s1 = new Sample(); int i; i = s1.func(); Single j; j = s1.func(); } } }
int[ , ] intMyArr = {{7, 1, 3}, {2, 9, 6}};
int[][][] intMyArr = new int[2][][];
int[][]a = new int[2][]; a[0] = new int[4]{6, 1 ,4, 3}; a[1] = new int[3]{9, 2, 7}; foreach (int[ ] i in a) { /* Add loop here */ Console.Write(j + " "); Console.WriteLine(); }
int[ , ] a; a = new int[2, 3]{{7, 1, 3},{2, 9, 6}};
int[ , ] a; a = new int[2, 3]{};
int[ , ] a = {{7, 1, 3}, {2, 9,6 }};
int[ , ] a; a = new int[1, 2];
int[ , ] a; a = new int[1, 2]{{7, 1, 3}, {2, 9, 6}};
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.