摘要:
//获取文件名后缀char* fileName = "pwave.sgy";std::string file_str = fileName;int pos = file_str.rfind('.') + 1;std::string temp = file_str.substr( pos ); 阅读全文
摘要:
1、substr( size_type off, size_type count ) 从源串中复制子串#include //复制子串std::string str1("新和xinbingcup");std::string str_sub = str1.substr( 0, 4 );//substr(... 阅读全文