当以常量替换#define时,有两种注意的情况,第一种是定义常量指针(const pointers)。由于常量定义式常放在头文件内,因此有必要将指针也声明为const。
基于1个网页-相关网页
定义常量指针
Define constant pointer
以上为机器翻译结果,长、整句建议使用 人工翻译 。
XMLStreamReader 接口基本上定义了基于指针的 API(虽然标记常量在其超类型 XMLStreamConstants 接口中定义)。
The XMLStreamReader interface essentially defines the cursor-based API (though the token constants are defined in its super-type, interface XMLStreamConstants).
youdao
应用推荐
模块上移
模块下移
不移动