173k views
3 votes
How to set c++ version in visual studio

User Hoppa
by
7.7k points

1 Answer

3 votes

Final answer:

To set the C++ version in Visual Studio, open the project properties and navigate to the "C++ Language Standard" option within the "Language" section of "C/C++" to select the desired C++ standard. Click "OK" to apply the changes.

Step-by-step explanation:

To set the C++ version in Visual Studio, you need to follow these steps:

  1. Open your project in Visual Studio.
  2. Right-click on your project in the Solution Explorer and select "Properties".
  3. Navigate to the "Configuration Properties" > "C/C++" > "Language" section.
  4. In the "Language" section, find the "C++ Language Standard" option.
  5. From the dropdown menu, select the version of the C++ standard you wish to use (e.g., C++17, C++14, C++11).
  6. Click "OK" to save your changes.

This will set the specific C++ standard select the version of the C++ standard you wish to use for your entire project. It's important to ensure that the version you select is supported by your compiler and toolset.

User Dreftymac
by
7.7k points