Student *stu = NULL; //Student是结构体类型
stu = (Student*)::HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,sizeof(Student) + 1024);
分配内存,stu成员指向的内存直接位于Student对象之后对吗?为什么?
更正一下:
Student结构中有一个成员char* str;
str成员指向的内存直接位于Student对象之后对吗?为什么?
慕尼黑5688855
隔江千里
侃侃尔雅