
华为编程题目
happy曾帅
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
用c++简单实现四则运算
#include #include using namespace std; int calcute(char *input) { int length=strlen(input)+1; if(NULL==input||length<=0) return -1000; char *temp=new char[length]; char *temp2=temp; memset(temp原创 2015-03-25 11:06:37 · 2178 阅读 · 0 评论 -
华为(C++实现字符串压缩程序)
#include #include using namespace std; void string_zip(string input,string &output) { if(input.empty()) return ; char last='\0'; char current; int count=0; for(int i=0;i<input.size();++i) {原创 2015-03-28 11:02:07 · 1251 阅读 · 0 评论 -
C++实现指定的字符串替代(华为)
#include #include #include #include using namespace std; /*void replace(char *str_src,char *str_find,char *str_replace) { if(NULL==str_src||str_find==NULL||str_replace==NULL) return ; char *head=st原创 2015-03-28 10:39:46 · 778 阅读 · 0 评论