name.find(‘ ‘) == std::string::npos//npos==-1,表示没找到
用c++ sttring检测名字是否有空格
原文:https://www.cnblogs.com/confusion/p/9240707.html