string
[,] name;
name = new string [ 2 , 5 ];
name[ 0 , 0 ] = " 官士彬 " ;
name[ 0 , 1 ] = " 23 " ;
name[ 0 , 2 ] = " guanshibin@126.com " ;
name[ 0 , 3 ] = " 309678100 " ;
name[ 0 , 4 ] = " 山东青岛 " ;
name[ 1 , 0 ] = " 翟会 " ;
name[ 1 , 1 ] = " 22 " ;
name[ 1 , 2 ] = " dihui2008@163.com " ;
name[ 1 , 3 ] = " 47894567 " ;
name[ 1 , 4 ] = " 渐江宁波 " ;
for ( int i = 0 ;i < name.Rank;i ++ )
{//name.Rank用于获取数组的维数;
for(int j=0;j<name.GetUpperBound(i.Rank-1);j++)
{//GetUpperBound(i.Rank-1)用于获取数组的最大维数上限GetUpperBound(0)用于获取最小维数的上限;
Response.Write("<br>"+name[i,j]);
}
}
name = new string [ 2 , 5 ];
name[ 0 , 0 ] = " 官士彬 " ;
name[ 0 , 1 ] = " 23 " ;
name[ 0 , 2 ] = " guanshibin@126.com " ;
name[ 0 , 3 ] = " 309678100 " ;
name[ 0 , 4 ] = " 山东青岛 " ;
name[ 1 , 0 ] = " 翟会 " ;
name[ 1 , 1 ] = " 22 " ;
name[ 1 , 2 ] = " dihui2008@163.com " ;
name[ 1 , 3 ] = " 47894567 " ;
name[ 1 , 4 ] = " 渐江宁波 " ;
for ( int i = 0 ;i < name.Rank;i ++ )
{//name.Rank用于获取数组的维数;
for(int j=0;j<name.GetUpperBound(i.Rank-1);j++)
{//GetUpperBound(i.Rank-1)用于获取数组的最大维数上限GetUpperBound(0)用于获取最小维数的上限;
Response.Write("<br>"+name[i,j]);
}
}