Home > Back-end >  C implementation two strings are linked together, why can't, so ask for help
C implementation two strings are linked together, why can't, so ask for help

Time:10-31

#include
using namespace std;
Int main ()
{
Char * s * d * f * g * q;
Int I, a, b;
Cout<& lt;" Please enter the first string length: "& lt; Cin> a;
S=new char [a];
D=s;
Cout<& lt;" Please enter the first string: "& lt; for(i=0; i{
Cin> * d;
D++;
}
D=s;
Cout<& lt;" Please enter the second the length of the string: "& lt; Cin> b;
F=new char [b];
G=f;
Cout<& lt;" Please enter the second string: "& lt; for(i=0; i{
Cin> * g;
G + +;
}
D=d + a;
D=f;
for(i=0; i{
Cout<* s;
S++;
}
}
  • Related