This is a discussion on file opening problem within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by bigmac(rexdale) oh ok, so fclose after i return fp? and i made the changes ...no. Once you ...
OK this is strange, you are using all C in your project.
Are you supposed to do that? This is C++, so...
You are reading with scanf in a very unsafe way, but you could easily fix that by using the "correct" C++ model instead.
Or are you going to keep on using C? I'm wondering here...
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^