if(b[i]>b[i+1])
{
int temp;
temp=b(i);
b(i)=b(i+1);
b(i+1)=temp;
int temp1;
temp1=a(i);
a(i)=a(i+1);
a(i+1)=temp1;
{
int temp;
temp=b(i);
b(i)=b(i+1);
b(i+1)=temp;
int temp1;
temp1=a(i);
a(i)=a(i+1);
a(i+1)=temp1;
最新回答 / 慕粉4364288
using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { for(int i=1;i<=7;i++) { for(int j=1;j<=7;j++) {...
2017-11-26
哪位大兄弟能告诉我这哪错了 运行成功输出错误
int a=0 ,b=0;
for(int i =0;i<score.Length;i++)
{
if(score[i]>a)
{
a=score[i];
b=i;
}
}
int a=0 ,b=0;
for(int i =0;i<score.Length;i++)
{
if(score[i]>a)
{
a=score[i];
b=i;
}
}
string[] name = {"景珍","林惠洋","成蓉","洪南昌", "龙玉民", "单江开", "田武山", "王三明" };
int[] score = {90,65,88,70,46,81,100,68};
for (int j=0,k=0;j<score.Length;j++) {
if (score[j] > avg) havgname[k] = name[j];k++;} }
int[] score = {90,65,88,70,46,81,100,68};
for (int j=0,k=0;j<score.Length;j++) {
if (score[j] > avg) havgname[k] = name[j];k++;} }