How to use VisualStudio2013 to write and debug a C language program

Source: Internet
Author: User

I think a lot of basic learners are not familiar with VS, I would like to turn to a good. Transferred from: http://jingyan.baidu.com/article/f3ad7d0fe7ca0d09c3345b84.html

Most of the students now use Windows 8 and 8.1, there is a compatibility problem with VC6.0, which is a very troublesome thing for beginners. and Visual Studio 2013 is a very powerful tool, many students choose vs2013 but do not know how to use, below I will take a simple project as an example, to introduce the use of vs2013 to build and debug C or C + + programs.

  1. The computer installs the Microsoft Company's VS2013, may download the genuine from the DreamSpark or obtains through the other way, installs can.
  2. Open VS2013, interface appears
  3. You can create a project by clicking on the file-new-build project or click on "New Project" on the Welcome page.
  4. Pop-up dialog box, tick "empty project" to establish the project, the project name can be filled with English characters, such as Project1, others do not fill.
  5. After building the project, on the right there is a "Solution Explorer", find the source file, right-click, and then left-click Add-New Item-C + + file, so that the project Project1 under the creation of a source file, name such as source. cpp, you can edit the code. If you have written a C + + source program with other character editing software, you can also right-click the source file, left click-Existing item, find your source in the folder to add to the project.
  6. Edit the source file, you can run or debug, the beginner is to write a simple program, so only with a source file on the line. Click Debug-Start running (do not debug) directly compile the run, if there are errors, the system will prompt.
  7. If you want to debug, you can click Debug-step-by-step (F10) or step-by-step (F11)
  8. or set breakpoints
  9. Debug before Debugging--window (that is, watch) can choose different display results, can show the variable process, convenient debugging. Click "Continue" to end the debugging.

How to use VisualStudio2013 to write and debug a C language program

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.