Hi friends
I am using Dev-C++ 5.9.2 version and when I use this statement I always get error please help me... where "file" is a string where the file name is being taken from user.
The Dev-C++ is an IDE that merely uses some compiler. The compiler can be changed. There seems to be an update for the Dev-C++ too: http://orwelldevcpp.blogspot.fi/
The "default compiler" mentioned there is a port of GCC and GCC by default does operate in "C++98 and GNU extensions" mode. You need to pass it appropriate "-std=" option to enable support for newer standard.