c++/oop 类型别名/typedef/using

typedef

 

typedef unsigned int uint;

等价于

using uint = unsigned int;

 

数组

typedef int suzu[];
suzu a= {1,2,3};

等价于

using SUZU = int[];

using 的写法会稍微好理解一些

 

posted @ 2022-04-21 15:24  liankewei123456  阅读(25)  评论(0编辑  收藏  举报