4 { int n=strlen (p) ; for (int i=n-l; i>0 ; i--) for(int j=0; j5(19) 6){ char t=p[j]; 7(20) 8; p[j+1]=t; } } void merge(str &a,str &b) { a.sort9; b.sort10; if (p) delete []p; p= 11(21) 12; char *pa=a.p,*pb=b.p,*pc=p ; while (*pa&&*pb) if (*pa<*pb) *pc++=*pa++; else *pc++=*pb++; if(*pa) while(*pa) *pc++=*pa++; else while(*pb) *pc++=*pb++; *pc=0; } }; void main (void ) { str s1("Hello,Wang."),s2 ("You are students."),s3; 13(22) 14; s1. output15; s2. output16; s3. output17; }