【发布时间】:2018-07-15 22:25:54
【问题描述】:
struct boolean_struct { int member; } typedef int boolean_struct::* boolean_type;typedef char(&yes)[1];
请解释一下这些 typedef 在做什么。我真的很想了解他们。
【问题讨论】:
-
这些都包含在任何合理的good text book 中。从长远来看,阅读教科书会对您有所帮助。如果您对语言的所有基本方面没有深入了解,那么从长远来看,获得这些特定问题的答案对您没有帮助。
-
你做过研究吗?
-
提示:查找成员函数指针语法和数组语法。
标签: c++ c++11 type-definition