#include <stype.h>#include <string.h>#include <stdio.h>void top(char *s){ int i=0; for(;*s;s++) if(i) { if(*s==' ') i=0; } else { if(*s!=' ') { i=1; *s=toupper(*s); } }}main(){ char str[8]; printf("\nPlease enter an English text line:"); gets(str); printf("\n\nBefore changing:\n %s",str); top(str); printf("\nAfter changing:\n %s\n",str);}
编译后出现如下错误,是怎么回事??