题解 | #字符串连接#

字符串连接

https://www.nowcoder.com/practice/40d83e5509b04d20825ae68fe35e9ca8

#include<iostream>
#include<string>
using namespace std;
//什么是无冗余的连接起来? 
//无冗余连接:即不能用数组占用多余空间 
int main(){
	char str1[101],str2[101];
	while(scanf("%s%s",str1,str2)!=EOF){
		string st1=str1,st2=str2;
		string st=st1+st2;
		printf("%s\n",st.c_str());
	}
}

全部评论

相关推荐

10-15 20:01
已编辑
上海大学 Java
钉钉什么垃圾公司,约面鸽人
Syca_:途虎养车给我定了我这边早上六点的笔试,睡了四个小时起来难受的要命,告诉我面试时间是两天后的凌晨四点
点赞 评论 收藏
分享
迷茫的大四🐶:摊牌了,我是25届的,你们也不招我
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务