面试中遇到的问题,面试官也没给解答。求大神知道,这个接口有什么不好: bool IsXP(std::string a);
我觉得是这样: bool IsXP(const std::string &a);
收起
你的解答可以啊。引用,常量参数都是更好的方式
报告相同问题?