https://www.gravatar.com/avatar/c696f1166a31429e0e2071f6098af4d4?s=240&d=mp

记录一次C++报错

前段时间做C++的练习,遇到了一个非常混乱的报错,在此记录一下。 错误复现出错的代码是关于std::map的练习。 #include <string> #include <map> class PhoneBook { public: void addContact( const std::string& name, const