2016年4月29日

表示数值的字符串

摘要: class Solution { public: bool isNum(char *ch) { if(*ch='0') return true; else return false; } bool isNumeric(char* string) { if(string==N... 阅读全文

posted @ 2016-04-29 11:58 RenewDo 阅读(146) 评论(0) 推荐(0) 编辑

正则表达式匹配

摘要: class Solution { public: bool matchTrue(char* str, char* pattern) { if(*str=='\0'&&*pattern=='\0') return true; else if(*str!='\0'&&*pattern=='\0') ret... 阅读全文

posted @ 2016-04-29 11:14 RenewDo 阅读(178) 评论(0) 推荐(0) 编辑

导航