how to translate EOF from C programing to C++


Please help me, I have search it on internet, but most of it I really don't understand. I just want to do end of file. In C programing way, you just type in while(scanf("%d",&i)!=EOF), but what do you do for C++ for the same way?
Last edited on
So, you want to know how to create an infinite loop in C++?
closed account (48T7M4Gy)
http://www.cplusplus.com/reference/ios/ios/eof/
Topic archived. No new replies allowed.