摘要: 1 class Solution { 2 public: 3 int StrToInt(string str) { 4 if(str.size() == 0) return 0; 5 6 int k; 7 //去空格 8 while(str.size() != 0 && str[k] == ‘ ’) 阅读全文
posted @ 2020-03-17 20:39 靖愁 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 正则表达式 - 语法 表示数值的字符串(C++描述) 表示数值的字符串 阅读全文
posted @ 2020-03-17 11:07 靖愁 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 转自:c++ 关于char *的类库函数 一,拷贝: char stpcpy(char *dest,const char *src) 将字符串src复制到dest char strncpy(char *dest,const char *src,size_t maxlen) 复制src中的前maxle 阅读全文
posted @ 2020-03-17 09:41 靖愁 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: 思路:https://blog.csdn.net/qq_28410301/article/details/100182901 class Solution { public: bool isMatch(string str, string pattern) { //递归结束 if(str.empty 阅读全文
posted @ 2020-03-17 06:43 靖愁 阅读(121) 评论(0) 推荐(0) 编辑