|
|
back to boardHow can i find the end of data?(c++) When i use "while((sym=getchar())!=EOF)", i get WA#1 When i use "while((scanf("%c",&sym)>0)", without changing the rest of the program, i don't get WA#1, but scanf is very slow! I get TL#2. "while(!feof(stdin))" also give me WA#1. How can i find the end of data?! Re: How can i find the end of data?(c++) Tell me, please! How to do this? In FAQ written "while ((c = getchar()) != EOF)", but it doesn't work!! |
|
|