about how to turn on C++11 support in the IDE

Source: Internet
Author: User

C++11 was announced on August 12, 2011, the standard for the first major revision of the c++98 13 years after the release, so please note that this standard release time is in the second half of 2011, so your IDE or compiler release time is before this, such as VS2010, Codeblocks 10.05 version, that's very embarrassing, your IDE and compiler need to re-download, the time is best to release the 2013-2017 IDE and compiler, because the C++11 standard proposed to come soon, The large compiler development research team needs a certain amount of time to develop, so the newer the compiler, the better the support c++11 degree.

As for what the IDE is, it's turnip cabbage each their own, some people like visual Studio, and Dev C + +, and codeblocks ...

But be careful when downloading

Visual Studio2013 and later versions support C++11,

Then Dev C + + doesn't work, so it's saved.

Codeblocks 13.12 supports c++11, but it is turned off by default, so you need to open it manually, as follows:

Select Setting--> Select Compiler--> in the upper right corner select the right global Compiler Setting-->selected compiler--> select GNU GCC compiler--> Select compiler Flags---check the option to end with-std=c++11, click OK, no need to restart the software to support c++11

Try to run the following code in the page, if you do not make an error, it proves successful.

#include <iostream>int main () {    using Zx=int;    ZX A=10;    Decltype (a) b;    Auto c=3.14159;}

about how to turn on C++11 support in the IDE

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.