2012-12-09 76 views

回答

5
for(int i = 0; i < animals.length();i++) //Go through the whole array 
{ 
    Console.WriteLine(animals[i] + " " + i); //Output the animal and the index 
} 
Console.ReadLine(); //Wait for user input. 
+0

const int Array_length = 10; //创建一个命名常量 int [] array = new int [Array_length]; //创建一个新数组 //计算每个数组的值 (int counter = 0; counter

+0

什么似乎没有工作呢? – bigcakes

相关问题