题解 | #字符串连接#

字符串连接

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

#include <iostream>
using namespace std;

int main() {
   char a[100], b[100];
    while (cin >> a >> b) { 
        int i=0,j=0;
        while(a[i]!='\0')cout<<a[i++];
        while(b[j]!='\0')cout<<b[j++];
        cout<<endl;
       
    }
}

全部评论

相关推荐

点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务