int y=0;
for (int i = 0; i < score.Length; i++)
{
if (score[i] > max)
{
max = score[i];
y = i;
}
}
Console.Write("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}",names[y],max);
}
for (int i = 0; i < score.Length; i++)
{
if (score[i] > max)
{
max = score[i];
y = i;
}
}
Console.Write("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}",names[y],max);
}
2015-09-18
static void Main(string[] args)
{
string[] names = new string[] { "吳松", "錢東宇", "伏晨", "陳陸", "周茜", "林日鵬", "何昆", "關(guān)欣" };
int[] score = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 };
int max = score[0];
{
string[] names = new string[] { "吳松", "錢東宇", "伏晨", "陳陸", "周茜", "林日鵬", "何昆", "關(guān)欣" };
int[] score = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 };
int max = score[0];
2015-09-18
已采納回答 / 化龍貝
不能通過是因?yàn)樗臋z查機(jī)制做不到這么完美,以實(shí)際運(yùn)行效果為準(zhǔn)然后沒有結(jié)果,好像是因?yàn)楹蠖擞袉栴},接口訪問不到
為啥會(huì)慢咧,JAVA和C貌似都能在右邊有個(gè)輸出結(jié)果吧,在網(wǎng)頁上是咋實(shí)現(xiàn)的呢?
2015-09-17
int x=1;
bool a = ++x * x > 3;
bool b = True;//請(qǐng)賦值
Console.WriteLine(a==b);
bool a = ++x * x > 3;
bool b = True;//請(qǐng)賦值
Console.WriteLine(a==b);
2015-09-17
Console.WriteLine(true!=false);//輸出True
Console.WriteLine(true==false);//輸出False
Console.WriteLine(!false);//輸出True
Console.WriteLine(true==false);//輸出False
Console.WriteLine(!false);//輸出True
2015-09-17