cpp
yebhweb
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
QT5。怎么开启C++11标准
首先你使用的编译器要支持你要用的C++11 特性,其次,在.pro中加上CONFIG += c++11转载 2016-05-15 22:51:23 · 2075 阅读 · 0 评论 -
C++判断string是不是数字
#include #include using namespace std; bool isNum(string str); int main( ) { string ss1="2y5r"; string ss2="2558"; if(isNum(ss1)) { cout转载 2016-06-04 09:53:09 · 10164 阅读 · 1 评论 -
c++ string split分割字符串
#include #include #include #include using namespace std;vectorstring> split(const string& str, int delimiter(int) = ::isspace){ vectorstring> result; auto e=str.end(); auto转载 2016-06-04 15:07:27 · 486 阅读 · 0 评论 -
c++ string startwith方法使用
#include using namespace std;int main(){ string s("hello, world"); string head("hello"); string tail("ld"); bool startwith = s.compare(0, head.size(), head) == 0; cout转载 2016-06-04 20:34:07 · 12262 阅读 · 0 评论
分享