连接字符串
来源:互联网 发布:一辈子买不起房子知乎 编辑:程序博客网 时间:2024/04/26 15:40
/**Corpyright (c)2013,烟台大学计算机学院*All right reseved.*作者:z张梦佳*完成日期:2013年12月22日*版本号:v1.0*输入描述:*问题描述:连接字符串!*程序输出:*问题分析:*算法设计:*/#include <iostream>using namespace std;void adel(char*,const char*);int main(){ char str1[]={"I want to eat to food!"}; const char str2[]={"How are you!"}; cout<<"连接后的字符串是:"<<endl; adel(str1,str2); cout<<str1<<endl; return 0;}void adel(char str1[],const char str2[]){ int i; for(i=0;str1[i]!='\0';i++) { } for( str1=str1+i;*str2!='\0';str1++,str2++) { *str1=*str2; }}
0 0
- 连接字符串
- 字符串连接
- 连接字符串
- 连接字符串
- 连接字符串
- 连接字符串
- 连接字符串
- 连接字符串
- 连接字符串
- 字符串连接
- 连接字符串
- 字符串连接
- 字符串连接
- 连接字符串
- 字符串连接
- 字符串连接
- 连接字符串
- 字符串连接
- 观察者模式
- sscanf用法
- 岩心数字化管理系统系列(一)界面与功能概述篇
- 15分钟学会使用Git和远程代码库
- syncronized深入
- 连接字符串
- Git 分支管理是一门艺术
- qt5连接sqlite数据库实例
- (笔记)两种判断奇数偶数的方法
- URI和URL的区别
- 介绍一个成功的 Git 分支模型
- Collection接口
- 地址描述符结构ARDS
- 坚持前进的方向:总结2013,规划2014