string[,] achi = new string[2,8] {{ "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" },{ "89", "90", "98", "56", "60", "91", "93", "85" }};
int Max = 0;
for (int i = 0; i < 7; i++)
{
if (int.Parse(achi[1,Max]) > int.Parse(achi[1,i + 1]))//int.Parse为C#强制转换类型
continue;
else
Max = i + 1;
}
//输出写不下了
int Max = 0;
for (int i = 0; i < 7; i++)
{
if (int.Parse(achi[1,Max]) > int.Parse(achi[1,i + 1]))//int.Parse为C#强制转换类型
continue;
else
Max = i + 1;
}
//输出写不下了
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
string[]five=new string[]{"关羽,","张飞,","赵云,","马超,","黄忠,"};
for(int i=0;i<five.Length;i++){
Console.Write(five[i]);}} }}
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
string[]five=new string[]{"关羽,","张飞,","赵云,","马超,","黄忠,"};
for(int i=0;i<five.Length;i++){
Console.Write(five[i]);}} }}
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
2016-07-25