Home > Back-end >  C/want to interval insert another string in a string as input a2b3c 123 ABC output 1
C/want to interval insert another string in a string as input a2b3c 123 ABC output 1

Time:03-30

# include
using namespace std;
# include

Int main ()
{
Char num [15].
Char ch [15].
Cin> num.
Cin> ch;
int n;
N=sizeof (num)/sizeof (num [1]).
String * p=new string (2 * n),
For (int I=0, int j=1, int k=0; I <2 * n. I +=2, j +=2, k++)
{
P=num [I] [k].
P=ch [k] [j];
}
Cout

The delete [] p;
return 0;
}

  • Related