關(guān)于本小杰的例子
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20180727
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? int[,] score = new int[4, 2] { { 89, 96 }, { 69, 40 }, { 78, 96 }, { 100, 89 } };
? ? ? ? ? ? Console.WriteLine("同學(xué)們的分?jǐn)?shù)是:");
? ? ? ? ? ? for (int i = 0; i < score.GetLongLength(0); i++) ;
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.WriteLine("語文:{0},數(shù)學(xué):{1}", score[i, 0], score[i, 1]);
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
為什么會(huì)出錯(cuò)呢?求大神解答下
2018-07-27
14行的分號(hào)刪掉