struct详解

正常定义一个数据结构都是这样用

typedef struct{

  int a;

  int b;

}M;

在使用时 M a;

其实 struct是这样的

struct M{

     int a;

  int b;

};

在使用时 struct M a;

不过为了方便,用typedef的很多。

原文地址:https://www.cnblogs.com/mattins/p/3345719.html