【发布时间】:2016-06-27 07:14:21
【问题描述】:
我需要用 C++ 编写一个客户端,它将打包结构发送到服务器。服务器必须用 C# 编写。我不明白,如何在 C# 中转换它。可能你会建议一个更好的方法来做到这一点。
例如:
typedef struct StudentInfo
{
char Name[50];
unsigned int Age;
char Group[10];
}__attribute__((packed));
【问题讨论】:
标签: c# c++ network-programming