c 别名 typedef

typedef 给类型换一个新的名字,更易读。

    typedef struct book{
        int no;
        char name[20];
    } BOOK;

   BOOK b ;
   b.no = 1;
   b.name = 'wasoft';

   typedef int INTER;
   INTER c;

 

posted @ 2020-03-13 13:51  头上一片天  阅读(152)  评论(0)    收藏  举报