//#include "stdafx.h"//vc++6.0加上这一行.
#include "
stdio.h"
#include "
string.h"
void main(void){
char w[300];
int i,j,wl,lm,l;
printf("Enter a string composed of words...\n");
l=strlen(gets(w));
for(wl=lm=j=i=0;i<=l;i++){
if(w[i]!=' ' && w[i]!='\n' && w[i]!='\0') wl++;
else if(w[i]==' ' || w[i]=='\n' || w[i]=='\0'){
if(lm<wl){
lm=wl;
j=i-lm;
}
wl=0;
}
}
for(;w[j]!=' ' && w[j]!='\n' && w[j]!='\0';printf("%c",w[j++]));
printf("\n");
}