C#数组输入幅值给变量,求转换~
int n, i, j,ZLS;float r, x, k, y;
double[,] ZL = new double[100, 100];
double[] GII = new double[100];
double[] BII = new double[100];
double[,] Y = new double[100,100];
double[] YDS = new double[100];
int[] YDZ = new int[100];
Console.Write("请输入节点个数:");
Console.Read();
Console.Write("请输入支路数:");
Console.Read ();
for (int L = 1; L <= ZLS; L++)
{
这里怎么输入一个数组,然后把数组中每一个指都付给变量啊,
/*scanf("%lf,%lf,%lf,%lf,%lf,%lf",&ZL[L][1],&ZL[L][2],&ZL[L][3],&ZL[L][4],&ZL[L][5],&ZL[L][6]);
i=(int)ZL[L][1];
j=(int)ZL[L][2];
r=ZL[L][3];
x=ZL[L][4];
k=ZL[L][5];
y=ZL[L][6];
*/
这是C++程序的代码,求转换,谢谢了