题解 | #字符串拼接#

字符串拼接

http://www.nowcoder.com/practice/167be62a4f66497dbf318617cd14f57d

#include <cstring>
using namespace std;

int main() {
        
    string s1, s2;
    getline(cin, s1);
    getline(cin, s2);
    string s3=s1+s2;
    int i;
    for(i=0;i<=s3.length()-2;i++){
        printf("%c",s3[i]);
    }
    printf("%c\n",s3[s3.length()-1]);
 
    // write your code here......
    

    return 0;
}
全部评论

相关推荐

07-03 16:02
门头沟学院 Java
点赞 评论 收藏
分享
06-20 17:42
东华大学 Java
凉风落木楚山秋:要是在2015,你这简历还可以月入十万,可惜现在是2025,已经跟不上版本了
我的简历长这样
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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