最新回答 / 慕的地0236682
while( ( ch=getchar()!='\n' ) )→while( ( ch=getchar() )!='\n' )小伙子写程序要缩进,不然都懒得看你写的代码
2021-03-19
最新回答 / 慕标6286552
{吴松,钱东宇,伏晨,陈陆,周蕊,林日鹏,何昆,关欣} 每个字符串都没加"" int k=i; int K上面定于过了就补丁重复定义了score[k] 变量名score上面没定义过 应该改为name[K]
2021-01-24
最新回答 / weixin_慕虎1420592
score.Length返回的是数组元素个数,数组元素从0开始,循环条件到score.Length-1是数组最后一个元素,所已不能包括等于
2021-01-24
最新回答 / 至尊丶龙猫
string[] name=new string[] {"景珍","林惠洋","成蓉","洪南昌","龙玉民","单江开","田武山","王三明"}; int [] score=new int[] {90,65,88,70,46,81,100,68}; int sum=0,avg; for(int i=0;i<score.Length;i++){ sum+=score[i]; } ...
2021-01-09