本文介绍了struct内部的struct指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经定义了此结构
I have defined this structure
struct TTstruct
{
unsafe TTstruct* next;
public int[][][] bookings;
public long cost;
public long rcc;
public long rts;
public long ldb;
public long lua;
};
where方法将指针"TTstruct * next"作为参数,并且我收到此错误消息:
无法获取其地址,获取其大小或声明一个指向托管类型的指针("myNameSpace.SubjectsForm.TTstruct")
wherever method takes the pointer "TTstruct* next" as argument , and I recieve this error message :
Cannot take the address of, get the size of, or declare a pointer to a managed type (''myNameSpace.SubjectsForm.TTstruct'')
How can I solve this?
推荐答案
public fixed int[6][5][4] bookings;
这篇关于struct内部的struct指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!