1、结构体内直接赋初始值
struct Student{ char* name = nullptr; unsigned int age = 15; int number = 21509111; };
如此一来,所有声明的新结构体对象就是默认上面的值。