string[] nameStr={"关羽","张飞","赵云","马超","黄忠"};
foreach(string aName in nameStr)
{
Console.Write("{0},",aName);
//这坑是英文半角模式的“逗号”
}
Console.Write("请按任意键继续…");
//“…”是中文半角模式 Shift + 6,删掉一半省略号
Console.ReadKey();
foreach(string aName in nameStr)
{
Console.Write("{0},",aName);
//这坑是英文半角模式的“逗号”
}
Console.Write("请按任意键继续…");
//“…”是中文半角模式 Shift + 6,删掉一半省略号
Console.ReadKey();
static void Main(string[] args)
{
int x = 5;
int y = 5;
int z = 5;
x++;
Console.Write(6);
Console.Write(6);
Console.Write(6);
}
{
int x = 5;
int y = 5;
int z = 5;
x++;
Console.Write(6);
Console.Write(6);
Console.Write(6);
}
2017-09-16