1、功能: 申明一个结构体,在以下四种情况下判断其占有的内存空间的大小; 2、程序及其代码 2.1 大化对其原则 代码一:结构体中不包含字符串变量的时候; // 结构体占内存空间的判断.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "String.h" #include "iostream" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { typedef struct STUDENT_INFO