المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : 2-D array



C# Programming
08-24-2009, 11:19 PM
Hi everyone

i have an array x[5] and y[5] for which i have computed the values for x[0],y[0],x[1],y[1]....x[4],y[4]

now i wish to build a matrix d

d= x(square) x*y y(square) x y 1

for all values of x and y.

this is my code

float[,] temp= new float[6,6];
float[,] d= new d[5,6];

for(int k=0; k