摘要: 写一个函数,它的原形是int continumax(char *outputstr,char *intputstr)功能:在字符串中找出连续最长的数字串,并把这个串的长度返回,并把这个最长数字串付给其中一个函数参数outputstr所指内存。例如:"abcd12345ed125ss123456789... 阅读全文
posted @ 2014-10-06 17:31 -琥珀川- 阅读(667) 评论(0) 推荐(0)
摘要: #includeusing namespace std;int main(){ //memcpy函数 char d[20]; //声明数组 char *str="Hellow word"; memcpy(d,str,strlen(str)); d[strlen(str)]=0; //末尾添加0 表示... 阅读全文
posted @ 2014-10-06 15:11 -琥珀川- 阅读(234) 评论(0) 推荐(0)