Visual Studio 2019 installed the first to write a C program &

  1. Download: https://pc.qq.com/detail/19/detail_25679.html   Here we select Normal download
  2. After downloading the file named vs_community_2.3.2214.1002.exe , here we double-click to open .
  3. After opening the bottom right corner, click Continue , and then wait for the download and install.
  4. Upon completion of this page will be
  5.  

     Then we check the use of C ++ desktop development and common development of both the Windows platform, there are other needs can choose, also can be installed again in the future

  6. Installation location can be the default C disk, personal advice to IDE on the C drive, the other on the D drive, because the space it needs a little big 

  7. Then slowly it can wait
  8. Then select Restart
  9. Open Visual Studio 2019 , we choose a later date
  10. The default here is like, can also choose to your liking
  11. Here the bottom right corner but do not need to choose to continue the code
  12. File -> New -> Project here to choose C ++
  13. Then select Empty Project, and then click Next
  14. Here you can modify the location and then create
  15. On the right to find the right source file folder -> Add -> New Item
  16. Here the file name suffix must be a .c then add
  17. You can then write code, if that word is too small, the keyboard can press Ctrl key, and slide to adjust the middle mouse wheel. After writing Debug -> begin ( not debugging )
  18. Then you can see the results
  19. At this time we tested the second program, the compiler can not be found, there is an error, the error number is C4996
  20. This is a software problem, we can project -> Project Properties -> C / C ++ -> Preprocessor - Preprocessor definitions, and then followed by the phrase, _CRT_SECURE_NO_WARNINGS , then OK

     

     

     

     

  21. Then the error will not
  22. Tutorial.

 

Guess you like

Origin www.cnblogs.com/Marginalin/p/11683866.html