char[,] ch = { {'我','是','软'},{'件','工','程'},{'师','啦','!'}};
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
}
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
}
2018-01-03
//声明“职位”数组,初始化为:"经理","项目主管","技术总监","财务主管"
string[] job = new string[1];
job[0]=("经理项目主管技术总监财务主管");
for (int i = 0; i < job.Length; i++)
{
Console.WriteLine(job[i]);//打印职位
}
string[] job = new string[1];
job[0]=("经理项目主管技术总监财务主管");
for (int i = 0; i < job.Length; i++)
{
Console.WriteLine(job[i]);//打印职位
}
2018-01-03
for(int i=1;i<=7;i++)
for(int j=1;j<=7;j++)
{if(i==j||i+j==8)
Console.Write("O");
else Console.Write(".");
if(j==7)
Console.WriteLine();}
for(int j=1;j<=7;j++)
{if(i==j||i+j==8)
Console.Write("O");
else Console.Write(".");
if(j==7)
Console.WriteLine();}
static void Main(string[] args)
{
bool flag = false;
foreach(int i in num){
if(i % 7==0){
flag = true;
}
}
Console.Write(flag==true?"有":"没有"+"7的整倍数");
}
{
bool flag = false;
foreach(int i in num){
if(i % 7==0){
flag = true;
}
}
Console.Write(flag==true?"有":"没有"+"7的整倍数");
}
int x=1;
bool a = ++x * x > 3;
bool b = ++x>x;//请赋值
Console.WriteLine(a||b);
bool a = ++x * x > 3;
bool b = ++x>x;//请赋值
Console.WriteLine(a||b);
2017-12-31
string[] ming= {"景珍",......};
int[] fen= {90,.....};
int pingjun=0 ,zong=0 ;
for (int x =0; x<fen.Length ;x++ )
{ zong += fen[x]; }
pingjun = zong / (fen.Length) ;
Console.WriteLine("平均分是{0},高于平均分的有:",pingjun);
for (int x =0; x<fen.Length ;x++ )
{ if (fen[x]>pingjun) Console.Write(ming[x]); }
int[] fen= {90,.....};
int pingjun=0 ,zong=0 ;
for (int x =0; x<fen.Length ;x++ )
{ zong += fen[x]; }
pingjun = zong / (fen.Length) ;
Console.WriteLine("平均分是{0},高于平均分的有:",pingjun);
for (int x =0; x<fen.Length ;x++ )
{ if (fen[x]>pingjun) Console.Write(ming[x]); }
忽然变成视频了,还没了练习题.............呜呜,看不懂、也记不住。
没有练习题就没办法记住内容..............
没有练习题就没办法记住内容..............
2017-12-29