1. 程式人生 > >用c++ sttring檢測名字是否有空格

用c++ sttring檢測名字是否有空格

ring col span code ++ 空格 name In bsp

name.find( ) == std::string::npos//npos==-1,表示沒找到

用c++ sttring檢測名字是否有空格