c++ development environment installation

Table of contents

1. Download software

2 Install the software

 3. Create a project

4. Create a file

 5. Write code


1. Download software

1. Visual Studio: IDE and code editor for software developers and Teams

2. After entering the official website of Visual Studio, choose to download the Windows version, and select the Community 2022 community version to download

3. Save the software to the computer 

2 Install the software

Double-click to run the downloaded installation file, and the installation interface will pop up 

1. Start the installation

2. Select the option of desktop development using C++ . If you need others, check it yourself.

click the install button

3. Start the installation

 

The installation time will vary depending on network speed, computer equipment and other factors, so you can browse Weibo, Douyin and so on during this period. . .

After the installation is successful, it prompts to restart, click restart to complete the rest of the configuration

 4. The installation is complete

 5. The initial interface pops up

 3. Create a project

1. Click the Create New Project button. If the following template options appear, it proves that the installation is successful and a C++ project can be created!

 2. Configure a new project

3. The project is created

 

4. Create a file

Right-click the source file, select Add -> New Item

 Give the C++ file a name and click Add.

 5. Write code

 

#include <iostream>
using namespace std;

int main()
{
    cout << "hello word" << endl;
    system("pause");

    return 0;
}

 

Guess you like

Origin blog.csdn.net/Relievedz/article/details/129872181