Try: while(scanf("%15s", words) != EOF). You need to compare scanf output with EOF. Since you are specifying a width of 15 in the format string, ...
確定! 回上一頁