Răspuns :
int main(){ char text[256],text1[256],*p,p1[256],t[256]="",separator[]=",. !? "; int i,x,n; cin.get(text,256); strcpy(text1,text); p=strtok(text,separator); //primul apel while (p){ //atat timp cat mai exista entitati(cuvinte) x=p-text; n=strlen(p); strcpy(p1,p); if(n==3) strcat(t,"*"); else strcat(t,p1); i=x+n; while((int)text1[i]==32 ) {strcat(t," ");i++;} p=strtok(NULL,separator); //al doilea apel } cout<<t; return 0;}
100p
100p