struct详解

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

typedef struct{

  int a;

  int b;

}M;

在使用时 M a;

其实 struct是这样的

struct M{

     int a;

  int b;

};

在使用时 struct M a;

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

 

posted @ 2013-09-29 14:55  晨祷  阅读(329)  评论(0编辑  收藏  举报