CStringList strList;
strList.AddHead("abc");
strList.AddTail("def");
MessageBox(strList.GetHead());
POSITION pos = strList.GetHeadPosition();
MessageBox(strList.GetNext(pos));

解决方案 »

  1.   

    如果你知道第二维的维数,可以实现:
    float (*i)[2];
    i = new float [1][2];
      

  2.   

    int Col =10,Row =10;
    char **p;
    p = new char*[Col];
    for(int i=0;i<Col;i++)
    {
      p[i] = new char[Row];
      strcpy(p[i],"abcde");
      delete p[i];
    }
    delete []p;以上定义了一个二维字符型数组p,你可以用以上方法定义任何类型的二维数组。
      

  3.   

    dhc_Imy:
    谢谢你,能不能具体解释吗?因为我的水平有限。
      

  4.   

    我觉得用CArray类也能实现,但不知该如何使用。请哪位高手解释一下。