{
Char \ [15], ch [70].
Strcpy (ch, S.c _str ());
Int I, j, k;
for(j=0; J<15. J++)
{
Temp [j]=' ';
}
for(i=0; (ch [I]! )='\ n' & amp; & (ch [I]!='\ 0'); I++)
{
If (ch [I]==' ') continue;
For (k=0;; K++)
{
for(j=0; (j<15) & amp; & (temp [j].="); J++)
{
Temp [j]=' ';
}
for(j=0; (ch [I]!=' ') & amp; & (ch [I]! )='\ n' & amp; & (ch [I]!='\ 0'); J++)
{
Temp=ch [j] [I];
i++;
}
Aa [k]=temp;
If (ch [I]==' ')
i++;
else return;
}
}
}
CodePudding user response:
This is an algorithmCodePudding user response: