//定义并赋值数组
string [] arr = { "Nike","Adidas","李宁","kappa","361" };
//输出数列中的值
for (int i = 0; i < arr.Length; i++)
{
Console.WriteLine(arr[i]);
}
//定义并赋值数组
string [] arr = { "Nike","Adidas","李宁","kappa","361" };
//输出数列中的值
for (int i = 0; i < arr.Length; i++)
{
Console.WriteLine(arr[i]);
}
本文标题:2018-12-05 循环加数组命名
本文链接:https://www.haomeiwen.com/subject/cnxicqtx.html
网友评论