C#怎么从键盘中输入数组再给变量赋值?请高手指教哈~~~
int i,h,j,n, ZLS;float r, x, k, y;
double[,] ZL = new double[100, 6];
double[] GII = new double[100];
double[] BII = new double[100];
double[,] Y = new double[100,100];
int[] YDS = new int[100];
int[] YDZ = new int[100];
Console.Write("请输入节点个数n:");
n = int.Parse(Console.ReadLine());
Console.Write("请输入支路数ZLS:");
ZLS = int.Parse(Console.ReadLine());
for (int L = 1; L <=ZLS; L++)
{
//这里是从键盘中输入ZL[L,1],ZL[L,2]..ZL[L,6]分别赋值给下面的i,j,r,x,k,y 求教C#怎么表达!!!因为下面要用到这些参数作为运算!!
i = (int)ZL[L,1];
j = (int)ZL[L,2];
r =(float)ZL[L,3];
x = (float)ZL[L,4];
k = (float)ZL[L,5];
y = (float)ZL[L,6];}
if (i*j>0)
{
Y[L,1]=(-1*(r/(r*r+x*x)));
Y[L,2]=(-1*((-1*x)/(r*r+x*x)));
Y[L,3]=j;
GII[i]=GII[i]+(r/(r*r+x*x));
GII[j]=GII[j]+(r/(r*r+x*x));
BII[i]=BII[i]+(-1*x/(r*r+x*x))+y;
BII[j]=BII[j]+(-1*x/(r*r+x*x))+y;
YDS[i]=YDS[i]+1;
}。。。。。