Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to switch Visual-Studio 2010 into c++11

I'm new in programming in c++ and I want to try c++11 new features.

So what am I asking for is how can I switch visual-studio 2010 to be able to compile c++11 sources?

like image 299
user1493393 Avatar asked Jun 30 '12 18:06

user1493393


People also ask

How do I change my Visual Studio Code to C?

Install Visual Studio Code. Install the C/C++ extension for VS Code. You can install the C/C++ extension by searching for 'c++' in the Extensions view (Ctrl+Shift+X). Install the Microsoft Visual C++ (MSVC) compiler toolset.

Does Visual Studio support C++ 11?

Support for C11 and C17 standards is available in Visual Studio 2019 version 16.8 and later. Support requires an updated Universal C Runtime (UCRT) and Windows SDK version to work properly with the conforming preprocessor ( /Zc:preprocessor ).

How do I switch from Visual Studio to C++?

To do so, go to Tools > Options > Text Editor > C/C++ > Formatting (or type Ctrl + Q and search for "Formatting").

How do I get C to work in Visual Studio?

Download & Install the C/C++ Extension We need to click on the extension button that displays a sidebar for downloading and installing the C/C++ extension in the visual studio code. In the sidebar, type C Extension. In this image, click on the Install button to install the C/C++ extension.


2 Answers

You can refer to this table: C++0x Core Language Features In VC10: The Table. Just use those in your code.

like image 157
Gregory Pakosz Avatar answered Sep 24 '22 04:09

Gregory Pakosz


There is no switch; VC10 (and VC12) will always compile code that conforms to the parts of C++11 that they support. Which of course is not all of it.

like image 35
Nicol Bolas Avatar answered Sep 22 '22 04:09

Nicol Bolas