摘要: //获取文件名后缀char* fileName = "pwave.sgy";std::string file_str = fileName;int pos = file_str.rfind('.') + 1;std::string temp = file_str.substr( pos ); 阅读全文
posted @ 2014-09-11 16:31 想什么想 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1、substr( size_type off, size_type count ) 从源串中复制子串#include //复制子串std::string str1("新和xinbingcup");std::string str_sub = str1.substr( 0, 4 );//substr(... 阅读全文
posted @ 2014-09-11 11:35 想什么想 阅读(179) 评论(0) 推荐(0) 编辑