1. Installation package link
Files shared through Baidu Netdisk: VS2010
Link: https://pan.baidu.com/s/1vJWIRdJMqE7TgfBYGRrERQ
Extraction code: 13tt
Copy this content and open "Baidu Netdisk APP to get it"
(Please turn off the computer firewall and anti-virus software before installation)
1. Decompress the VisualStudio2010 installation package (7-Zip is recommended if there is no decompression software)
2. Find the setup file, select setup.exe, right-click to run as an administrator
3. Click Next Step
4. Click Install MicroSoft Visual Studio 2010
5. Wait for the installer to load the installation components
6. Cancel Send Microsoft Corporation information about my installation experience, Next
7. Click I have read and accept the license terms, Next
8. Click Browse, try not to install on the system disk (C disk), here I choose to install on the E disk, click Install
9. Wait for the installation, this process may take about 5 minutes, different computers have different times, wait patiently
10. Finally come On the successful installation interface we expect, click Finish
11. Click to exit the VS2010 installer interface
12. On the start interface (click the button with the Windows icon in the lower left corner), find the application under the Microsoft Visual Studio 2010 folder,
13. Press Hold down the left mouse button and link the icon to the desktop
14. Double-click the icon to open VS2010, select Visual C++ development settings, click to start Visual Studio
15. Select New Project
16. Select Win32 console application, name this file in the name, here Name it helloworld, select the folder you want to put in the location, and click OK
17. Enter the Win32 application wizard, click Next
18. Select the file-New
19. Select the empty item and click Finish
20. In the Solution Explorer, right-click the source file, click Add, and click New Item
21. Select the C++ file, enter the name, name it test here, select the location, and click Add
22. Here is the most classic example to test whether the software is can run normally
#include<stdio.h>
void main()
{
printf("Hello World !");
}
23. Press and hold Ctrl + F5, or click the green triangle picture next to Debug, run the program, click Yes
If you don't want the dialog box that this project has expired, click Generate Solution in Generate, and then hold down Ctrl + F5 or click the green triangle run button 24. The running result is shown in the figure. If the output window flashes, please go
to look down
25. Add getchar() after the previous code block. Why do you need to search the Internet by yourself? There are other solutions on the Internet. Search by yourself
#include<stdio.h>
void main()
{
printf("Hello World !");
getchar();
}