const关键字:定义常量。变量:使用变量分三步:声明,赋值,使用。数组循环(foreach):
string [] names = {"tom","jerry","lily"};
foreach (string name in names)
{console.writeLine("我的名字是{0}",name);}
const关键字:定义常量。变量:使用变量分三步:声明,赋值,使用。数组循环(foreach):
string [] names = {"tom","jerry","lily"};
foreach (string name in names)
{console.writeLine("我的名字是{0}",name);}