![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
华为编程题目
happy曾帅
这个作者很懒,什么都没留下…
展开
-
用c++简单实现四则运算
#include#includeusing 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 · 2114 阅读 · 0 评论 -
华为(C++实现字符串压缩程序)
#include#includeusing 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 · 1176 阅读 · 0 评论 -
C++实现指定的字符串替代(华为)
#include#include#include#includeusing 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 · 733 阅读 · 0 评论