Since March 2018, the development environment for the national Level 2 C and C++ language exams has changed from VC6.0 to VC++2010 Express. For users accustomed to VC6.0, it may take some time to adapt to VC++2010, but it offers more powerful features, and after a while, it feels quite good. Below, I will share a step-by-step tutorial on how to write and run a “Hello, World” C program using the 2010 learning edition.
Personal Trial Version:
http://www.zhanshaoyi.com/16421.html
(Copy the link above and paste it into your computer’s browser address bar to open)
Steps:
1. Open the VC++2010 learning edition software, click on the top menu bar, select 【New】→【Project】
2. Click on 【Win32 Console Application】, fill in the name in the text box below the window, for example, Hello, and the solution name should also be Hello. Choose a storage location, such as a folder with your student ID on drive D, then click the 【OK】 button
3. Click 【Next】 to continue
4. In the additional options, select “Empty Project”, and then click 【Finish】
5. In the left side of the software interface, right-click on “Source Files” in the “Solution Explorer” pane and select 【Add】→【New Item】
6. In the new window, select “C++ File (.cpp)” and fill in the name at the bottom of the window in English. Note: Do not forget to add .cpp at the end of the name, for example, Hello.cpp, and then click 【Add】
7. Switch to English input method and write the source program
8. Click 【Debug】→【Build Solution】 to compile and link the program into an executable solution. If there are syntax errors, modify the program according to the prompt information, and then rebuild the solution
9. Run the program by clicking the debug button 【▷】, or use the F5 shortcut key to run the program
10. The output result is as follows:
1. Do not forget to write the suffix .cpp in step 6;
2. To solve the problem of the running window flashing by, you can add the header file #include<Windows.h> to the source program, and then write system(“pause”); before the return 0; statement in the main function
END
If you find it useful, feel free to share it with your friends!
Software Library
Installation · Learning · Technology · Innovation
·↑ Long press this QR code to follow ↑·
WeChat ID: rjzkgzh
Click here to enter I Love SharingWebsite to get more resources