Sort the problem continued

Users questions: You do not know what sort of specific need, I just follow the first letter of each string to sort, string sort which I did not, not if you then sue me. . . VC + + do the following code # include iostream # include strin g usingnamespacestd; voidmain () {stringa [3]; stringb = ""; inti, j; cout "Enter string:" endl; for (i = 0; i 3; i + +) ci n a[i];for(i=0;i 3;i++){for(j=i;j 3;j++){if(a[j].substr(0,1) a[i].substr(0,1)){b=a[j];a[j]=a[i];a[i ] = B;}}} for (i = 0; i 3; i + +) cout a [i] ""; cout endl;} seniors which have sort ah, to help look at the 555. Which did not shoot, which should, Thank you
Experts answer: code is as follows: (PS: next time you move For example, when some of the more characteristic examples, or difficult to analyze, your description is too vague. I run this program if no do the same first letter dealt with directly in alphabetical row down, because you did not say how to do. . =. =! ) # Include iostrea m #include string usingnamespacestd;structab{chara[50];}k[3],x;voidcompute(char*a){intsize=0;charb;i i++){cin k[i].a;compute(k[i].a);}for(i=0;i 3;i++){for(j=i;j 3;j++){if(k[i].a[0] k[j].a[0]){x=k[i];k
  • This information provided by the users.Thanks!