C++自学计划-typedef-03 2018-12-15 本文已影响2人 你缺少想象力 typedef 给一个东西重命名,做为一种新的类型存在 比如: typedef int a; 然后就可以吧a作为一种类型直接声明了 a a1; 有点继承的意思