1 solutions

  • 0
    @ 2025-11-5 15:19:53

    C++ :

    #include <stdio.h>
    #include <stdlib.h>
    #include<string.h>
    /*
    写一函数,将两个字符串连接
    */
    
    int main(int argc, char *argv[])
    {
      char a[100],b[100];
      scanf("%s%s",a,b);
      strcat(a,b);
      printf("%s",a);
    
      return 0;
    }
    
    

    Pascal :

    var a,b:string;
    begin
      readln(a);
      readln(b);
      writeln(a,b);
    end.
    
    • 1

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

    Information

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