consider problems like bishops on spoj http://www.spoj.com/problems/BISHOPS/...what to do to end user input in c...i read a post that said to end user input when file ends...but being a novice programmer...i couldn't get it...so plz explain
This forum is full of questions (and answers) regarding this issue, just search for 'EOF'.
e.g.: