主题:帮帮忙这里要怎样改呀
using System;
class array
{
public static void Main()
{
int[] myints ={ 5, 10, 15 };
bool[][] mybools = new bool[2][];
mybools[0] = new bool[2];
mybools[1] = new bool[1];
double[,] mydoubles = new double[2, 2];
string[] mystrings = new string[3];
Console.WriteLine("myints [0];{0},myints [1];{1},myints [2];{2}", myints[0], myints[1], myints[2]);
mybools[0][0] = true;
mybools[0][1] = false;
mybools[1][1] = true;
Console.WriteLine("mybools[0][0];{0},mybools [1][0];{1}", mybools[0][0], mybools[1][0]);
mydoubles[0, 0] = 3.147;
mydoubles[0, 1] = 7.157;
mydoubles[1, 1] = 2.117;
mydoubles[1, 0] = 56.00138917;
Console.WriteLine("mydoubles[0][0];{0},mydoubles[1][0];{1}", mydoubles[0,0], mydoubles[1,0]);
mystrings[0] = "Joe";
mystrings[1] = "Matt";
mystrings[2] = "Robert";
Console.WriteLine("mystrings[0];{0},mystrings[1];{1},mystrings[2];{2}", mystrings[0], mystrings[1], mystrings[2]);
}
}
class array
{
public static void Main()
{
int[] myints ={ 5, 10, 15 };
bool[][] mybools = new bool[2][];
mybools[0] = new bool[2];
mybools[1] = new bool[1];
double[,] mydoubles = new double[2, 2];
string[] mystrings = new string[3];
Console.WriteLine("myints [0];{0},myints [1];{1},myints [2];{2}", myints[0], myints[1], myints[2]);
mybools[0][0] = true;
mybools[0][1] = false;
mybools[1][1] = true;
Console.WriteLine("mybools[0][0];{0},mybools [1][0];{1}", mybools[0][0], mybools[1][0]);
mydoubles[0, 0] = 3.147;
mydoubles[0, 1] = 7.157;
mydoubles[1, 1] = 2.117;
mydoubles[1, 0] = 56.00138917;
Console.WriteLine("mydoubles[0][0];{0},mydoubles[1][0];{1}", mydoubles[0,0], mydoubles[1,0]);
mystrings[0] = "Joe";
mystrings[1] = "Matt";
mystrings[2] = "Robert";
Console.WriteLine("mystrings[0];{0},mystrings[1];{1},mystrings[2];{2}", mystrings[0], mystrings[1], mystrings[2]);
}
}