例:检查不同数据类型在内存中的所占的字节数
文件的预处理
#include <iostream>
#include <string>
using namespace std; //use the standard library namespace
struct Type
{
short int SHORT_INT;
bool BOOL;
int INT;
float FLOAT;
long int LONG_INT;
double DOUBLE;
char CHAR;
string STRING;
};
1.使用结构体变量名