`double &operator[](const char *Name) ` 注意 const 。 C++ 里,字符串字面量是常量字符串,不能匹配 `char *` 参数,只能用 `const char *`。
阅读量:1
点赞量:0