struct node
        {
            int adjvex;
            int dut;
                
           struct node *next;    //此处如何表示        }edgenode;typedef struct {       int  projectname;       int  id;       edgenode *link;     //此处如何表示
}vexnode;

解决方案 »

  1.   

    把结构体在C#中定义为类。
    class node
    {
        int adjvex;
        int dut;
        node next; //这样就行了。
    }
      

  2.   

    可以参考一下System.IntPtr 结构
      

  3.   

    使用class是正确的。但是,还可以这样struct node
    {
        int adjvex;
        int dut;
        object next; 
    }这种方式,导致结构装箱,效率低,而且不可以改变栈中结构的值。
      

  4.   

    http://msdn2.microsoft.com/en-us/library/0szztey7(VS.80).aspx
    C++的,改C#应该很容易