1 solutions

  • 0
    @ 2025-11-5 19:24:14

    C :

    #include<stdio.h>
    #include<string.h>
    int main()
    {
        char a[300],b[100];
        gets(a);
        gets(b);
        strcat(a,b);
        puts(a);
        return 0;
    }
    
    

    C++ :

    #include<iostream>
    #include<string.h>
    using namespace std;
    int main()
    {
        char a[50],b[50];
        cin>>a>>b;
        cout<<strcat(a,b)<<endl;
    }
    
    

    Pascal :

    var st,s:string;
    begin
      readln(st);
      readln(s);
      writeln(st,s);
    end.
    
    • 1

    C语言程序设计教程(第三版)课后习题8.6

    Information

    ID
    19342
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By