Create your C++ Console project with Visual Studio 2022
First you need to install Visual Studio Community 2022
***
Open "Visual Studio 2022"
Click "Create a new project"
Click on "Empty Project", click the "Next" button
In the "Configure your new project" dialog
Put the project name in the "Project name" box
Choose where to save the project in the "Location" box
Name the solution in the "Solution" box
A solution is a container for one or more projects in Visual Studio
Click the "Create" button to create the project
Visual Studio create project
We will see a "Solution Explorer" containing the project's directory tree
If you don't see "Solution Explorer"
Do not worried
On the menu bar of Visual Studio
Click on the "View" tab
Click "Solution Explorer"
Or use the keyboard shortcut "Ctrl + Alt + L"
In the "Configure your new project" dialog
Put the project name in the "Project name" box
Choose where to save the project in the "Location" box
Name the solution in the "Solution" box
A solution is a container for one or more projects in Visual Studio
Click the "Create" button to create the project
Visual Studio create project
We will see a "Solution Explorer" containing the project's directory tree
If you don't see "Solution Explorer"
Do not worried
On the menu bar of Visual Studio
Click on the "View" tab
Click "Solution Explorer"
Or use the keyboard shortcut "Ctrl + Alt + L"
Right click on "Source Files"
Choose "Add" => "New Item" to open the "Add New Item" dialog
Or use the keyboard shortcut "Ctrl + Shift + A"
In the "Add New Item" dialog box
Select the item "C++ File (.cpp)" (default)
The name of the file you can set is "main.cpp", or leave the default "Source.cpp"
Here I leave the default
Then click the "Add" button to create a new code file
Visual Studio creates a new file that is an empty file
Now write code for this empty file
In the "Add New Item" dialog box
Select the item "C++ File (.cpp)" (default)
The name of the file you can set is "main.cpp", or leave the default "Source.cpp"
Here I leave the default
Then click the "Add" button to create a new code file
Visual Studio creates a new file that is an empty file
Now write code for this empty file