#include <iostream>
#include <stddef.h>
using namespace std;
struct
{
int a;
char b;
float c;
} x;//创建了一个变量x,包含三个成员
/******************************************************************************************************
**这个和上面的是不同类型,不能写z = & x;
*/
struct
{
int a;
char b;
float c;
} y[20], *z;//这个声明创建了y和z。y是一个数组,包含了20个结构体。z是一个指针,指向这个类型的结构体
struct SIMPLE
{
int a;
char b;
#include <stddef.h>
using namespace std;
struct
{
int a;
char b;
float c;
} x;//创建了一个变量x,包含三个成员
/******************************************************************************************************
**这个和上面的是不同类型,不能写z = & x;
*/
struct
{
int a;
char b;
float c;
} y[20], *z;//这个声明创建了y和z。y是一个数组,包含了20个结构体。z是一个指针,指向这个类型的结构体
struct SIMPLE
{
int a;
char b;