怎样在C#里定义结构体指针

2025-04-19 10:42:35
推荐回答(1个)
回答1:

public struct tabStudent
{
public char[] Name;//姓名
public int nianl; //年龄
};
ref tabStudent 或者 out tabStudent
但是你这个结构的内存布局要和C++里的一致