01 2012 档案
摘要:实现string 的去除两边空格,按指定字符截取,替换#include <iostream>#include <vector>using namespace std;namespace strtool{string trim(const string& str){ string::size_type pos = str.find_first_not_of(' '); if (pos == string::npos) { return str; } string::size_type pos2 = str.find_last_not_of('
        阅读全文
            
                    
                
浙公网安备 33010602011771号