How to change mode from c++98 mode in Dev-C++ to a mode that supports C++0x (range based for)?
Go to Tools -> Compiler Options -> "Compiler" tab
Check the checkbox labeled, "Add the following commands when calling the compiler" And add in the text entry box, "-std=c++11" or if that doesn't work "-std=C++0x"
Should be something like that anyway, I haven't had Dev C++ installed for many years, so I had to look at some screenshots on Google to remember.
Download from the following link http://orwelldevcpp.blogspot.in/2015/04/dev-c-511-released.html
Go to Tools->Compiler Option->Programs
and add -std=c++11
see the image
In Dev C++ 5.2.0.3 it's as simple as go to Tools->Compiler Options->Settings->Code Generation and setting Language standard (-std) to ISO C++11
By default, support for the most recent version of C++ is not enabled. It shall be explicitly enabled by going to:
Here, select the "Settings" tab, and within it, the "Code Generation" tab. There, in "Language standard (-std)" select "ISO C++ 11":
Ok that. You are now ready to compile C++11!