C#???????????
?????fireaxe ???????[ 2016/9/9 9:45:15 ] ????????C# ??????????? .NET
????????????
????1.??????????????????????????????????
????2.????????????Щ?????????????????
????3.?ó?????????????????????????????????д???????
?????????
????20?????????????????switch case
//20???? switch case ???
//???????????1??2??3??4??5
//????12345???????????????????
//????????
//?????????
Console.WriteLine("?????????????1??2??3??4??5??????????????????????塢??????????");
int[] shuzu = new int[20];
for (int i = 1; i <= 20; i++)
{
Console.Write("???" + i + "λ????????????");
shuzu[i - 1] = int.Parse(Console.ReadLine());
}
Console.WriteLine("?????????????????????????");
Console.ReadLine();
int zhangsan = 0?? lisi = 0?? wangwu = 0?? zhaoliu = 0?? fengqi = 0?? zuofei = 0;
for (int i = 0; i < 20; i++)
{
switch (shuzu[i])
{
case (int)Houxuanren.one:
zhangsan++;
break;
case (int)Houxuanren.two:
lisi++;
break;
case (int)Houxuanren.three:
wangwu++;
break;
case (int)Houxuanren.four:
zhaoliu++;
break;
case (int)Houxuanren.five:
fengqi++;
break;
default:
zuofei++;
break;
}
}
if (zhangsan > lisi && zhangsan > wangwu && zhangsan > zhaoliu && zhangsan > fengqi)
{
Console.WriteLine("?????????????" + zhangsan);
}
else if (lisi > zhangsan && lisi > wangwu && lisi > zhaoliu && lisi > fengqi)
{
Console.WriteLine("?????????????" + lisi);
}
else if (wangwu > lisi && wangwu > zhangsan && wangwu > zhaoliu && wangwu > fengqi)
{
Console.WriteLine("?????????????" + wangwu);
}
else if (zhaoliu > lisi && zhaoliu > wangwu && zhaoliu > zhangsan && zhaoliu > fengqi)
{
Console.WriteLine("?????????????" + zhaoliu);
}
else if (fengqi > lisi && fengqi > wangwu && fengqi > zhaoliu && fengqi > zhangsan)
{
Console.WriteLine("?????????????" + fengqi);
}
Console.WriteLine("???????????" + zuofei);
Console.ReadLine();
??????????°????????????????ж???????????飬?籣???????????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???????C#?е?StringC# Socket???????????????????C#?????????????????????????C#???????C#????????????Log4net??????δ????C#?????????????C#?????????????????C#???????????????C#????????????????C#7 ?е?Tuple??????C#??TypeScript - GeneratorC# ?????????細(xì)??????????C#?е???н???C#??MySQL?????????μ??Ч?????д??C#????C++??dll???C#??VS2010????е??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????