用scanf函数输入字符串在碰到空格就停止输入了,但是当我想用gets函数加上while时,while(gets(str)!=EOF)str是字符组,编译时会出现这样的错误,ISO C++ forbids comparison between pointer and integer 求破!拜托了.新手,已经没分了,求帮助
char *gets( char *buffer );
Returns its argument if successful. A NULL pointer indicates an error or end-of-file condition. Use ferror or feof to determine which one has occurred. If