摘要:
foreach循环// An array of integersint[] array1 = {0, 1, 2, 3, 4, 5};foreach (int n in array1){ System.Console.WriteLine(n.ToString());}// An array of stringsstring[] array2 = {"hello", "world"};foreach (string s in array2){ System.Console.WriteLine(s);}for循环// An array of integersi 阅读全文