|
VS2019 installation and use tutorial
There may be many small friends, know the software of VS2019, but don't know how to install and use, I will specifically introduce the installation method of VS2019 and create our own C ++ project and how to write yourself!
Here I will teach everyone how to install - Personal Edition: Visual Studio Community 2019 (∵that's Because It's Free!)
1. Download link: VS official website
2. Download version, download Community2019 version (personal version)
[Img] https://img-blog.csdnimg.cn/20210123135920595.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
3.VS2019 related configuration
If you just want to write C ++ code with VS2019, select C ++ desktop development!
[Img] https://img-blog.csdnimg.cn/20210123140209550.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
4. Reminder: Location We generally choose the default location, then click the installation!
[Img] https://img-blog.csdnimg.cn/20210123140446161.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
5. Installation completion into the interface
[Img] https://img-blog.csdnimg.cn/20210123140613956.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
There may be a small partner will pop up to you need your login interface. Here we register directly to a Microsoft account, registration is free! If you don't log in to the Microsoft account, you can only try for 30 days, you can use the Microsoft account to be used forever! That's Because It's Free!
6. Create my first project
(1) Click on the file
[Img] https://img-blog.csdnimg.cn/20210123141120940.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
(2) Click New → Project
[Img] https://img-blog.csdnimg.cn/20210123141209842.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
(3) Language We choose C ++, and select the empty project below!
[Img] https://img-blog.csdnimg.cn/20210123141331702.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
(4) Configure new projects
1 Project Name (It's up to you) casually!
2 Location (it's up to you) chooses a space relatively large, and it is convenient for you to find it!
3 Solution Name (IT's up to you) is just a code, you can see your mood!
[Img] https://img-blog.csdnimg.cn/20210123141513595.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
(5) The project is created, and then prepares to knock the code!
[Img] https://img-blog.csdnimg.cn/20210123142409178.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
(6) Write our first code
1 Right click to select our project
[Img] https://img-blog.csdnimg.cn/20210123142524640.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
2 Click to add → new project
[Img] https://img-blog.csdnimg.cn/20210123142613985.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
3 Select C ++ file (.cpp)
[Img] https://img-blog.csdnimg.cn/20210123142654193.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
4 items are completed, which can finally start writing code, there is a very exciting subsequent subsequent subsequent subsequent
[Img] https://img-blog.csdnimg.cn/20210123142902956.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
5 start writing code!
[Img] https://img-blog.csdnimg.cn/20210123143249358.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
The code in the screenshot is as follows
#include <iostream>
Using namespace std;
int main ()
{
Cout << "Hello World" << Endl;
System ("pause");
Return 0;
}
6 run the code. We can click on the local Windows debugger or press F5 directly.
At the same time, we noticed that the left side of the project 1.01 my first code font is bold!
[Img] https://img-blog.csdnimg.cn/20210123143651151.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
7 operation results
[Img] https://img-blog.csdnimg.cn/20210123143513614.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQ1NzgyMzc4,size_16,color_FFFFFF,t_70 [/ img]
The above is the specific steps we create a C ++ project using VS2019! Do you think that I said clearly? If you have any questions, you can leave a message in the comment area. |
|