博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
九度OJ 题目1206:字符串连接
阅读量:4105 次
发布时间:2019-05-25

本文共 612 字,大约阅读时间需要 2 分钟。

/*********************************  *    日期:2013-2-4 *    作者:SJF0115  *    题号: 九度OJ 题目1206:字符串连接 *    来源:http://ac.jobdu.com/problem.php?pid=1206 *    结果:AC  *    来源:2010年华中科技大学计算机保研机试真题 *    总结:**********************************/ #include
#include
int main(){ int i,index; char string[201]; char string2[101]; //freopen("C:\\Users\\SJF\\Desktop\\acm.txt","r",stdin); while(scanf("%s %s",string,string2) != EOF){ index = strlen(string); //连接 for(i = 0;i < strlen(string2);i++){ string[index++] = string2[i]; } //输出 for(i = 0;i < index;i++){ printf("%c",string[i]); } printf("\n"); }}

转载地址:http://nedsi.baihongyu.com/

你可能感兴趣的文章
python实现100以内自然数之和,偶数之和
查看>>
python数字逆序输出及多个print输出在同一行
查看>>
python九九乘法表(详解)
查看>>
ESP8266 WIFI数传 Pixhaw折腾笔记
查看>>
苏宁产品经理面经
查看>>
百度产品经理群面
查看>>
去哪儿一面+平安科技二面+hr面+贝贝一面+二面产品面经
查看>>
element ui 弹窗在IE11中关闭时闪现问题修复
查看>>
vue 遍历对象并动态绑定在下拉列表中
查看>>
Vue动态生成el-checkbox点击无法选中的解决方法
查看>>
python __future__
查看>>
MySQL Tricks1
查看>>
python 变量作用域问题(经典坑)
查看>>
pytorch
查看>>
pytorch(二)
查看>>
pytorch(三)
查看>>
pytorch(四)
查看>>
pytorch(5)
查看>>
pytorch(6)
查看>>
opencv 指定版本下载
查看>>