热门标签
更多>
搜索结果
查询Tags标签: TestStruct,共有 2条记录-
C++拷贝内存的方式给属性赋值
#include <iostream> #include <string.h>using namespace std;struct TestStruct {int id;char *a{nullptr};char *b{nullptr};char *c{nullptr}; }; int main(int argc, const char *argv[]) {int size = sizeof(TestStruct) + 6 + 3 + 2;auto st = (TestSt…
2021/10/21 7:11:38 人评论 次浏览 -
C++拷贝内存的方式给属性赋值
#include <iostream> #include <string.h>using namespace std;struct TestStruct {int id;char *a{nullptr};char *b{nullptr};char *c{nullptr}; }; int main(int argc, const char *argv[]) {int size = sizeof(TestStruct) + 6 + 3 + 2;auto st = (TestSt…
2021/10/21 7:11:38 人评论 次浏览