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