#include
#include
#include
Int main ()
{
Char a [2], [100], Max, min,
Int "s, I, sum1, gh1, sum2, gh2, d, s2, m;
for(s=0; s<2; S++)
The scanf (" % s ", a [s]);
Sum1=strlen (a [1]);
Sum2=strlen (a [0]);
Max=[1] a [0].
Min=a [0] [0];
For (gh1=0; Gh1 & lt; Sum1; Gh1 + +)
{
If (maxMax=a [1] [gh1];
}//to find the maximum character
For (gh2=0; Gh2 & lt; Sum2; Gh2 + +)
{
If (min>=a [0] [gh2])
{min=a [0] [gh2];
M=gh2. }//to find the minimum characters
}
For (s2=sum2-1; M
A [0]=[s2 + 1] a [0] (s2);
}//will
A [0] [m + 1]=Max;
Printf (" % s ", a [0]).
}
Help genuflect is begged
CodePudding user response:
The building Lord want to do? Didn't understand the code ~CodePudding user response:
The last two sentences to changeA [0] [m + 1]=Max; Followed by the following
A [0] [sum2 + 1]='\ 0';//string terminator are covered, with
Take a maximum character in [1], in a [0] m behind, where minimum characters in a [0] began after in turn back from m a,
MynameisAmyxzxca MynameisJanesdcx
Before is a [0], followed by a [1], a [1] is the largest y, a minimum [0] is a, y is inserted into a behind,
Program in addition to the '\ 0' characters,
CodePudding user response:
Thank you