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();
最赞回答 / 北凉客
for (int x = 1; x <= 7; x++)//循环7行 { for (int y = 1; y <= 7; y++)//循环7列 { if (x == y || x + y == 8)//对角线打印O { Console.Write("O"); ...
2017-09-18
最新回答 / 慕雪2877745
using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { for (int y = 1; y <= 7; y++) { for (int x = 1; x <= 7; x++) ...
2017-09-18