9、起开始有了这个函数 @deprecated 引起不推荐使用的警告 @see 表示交叉参考 函数的详细注释用@note代替详细注释,因为详细注释要空行隔开,容易忘记。(4)成员注释 /**< 或//<用来注释成员,放在成员后面,格式如下: int var; /**< Detailed description after the member */ int var; ///< Brief description after the member 此语法对函数成员也适用。 (5)枚举类型注释 /** @brief A
10、nother enum, with inline docs */enum AnotherEnum { V1, /**< value 1 */ V2 /**< value 2 */ }; 一般约定: (1)每个.h和