main.c(10) : error C2059: syntax error : 'type'. ... to check against EOF as well as \ n in your loop, in case the file does not end with a newline.
www.google.com.tw