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.
- The computer installs the Microsoft Company's VS2013, may download the genuine from the DreamSpark or obtains through the other way, installs can.
- Open VS2013, interface appears
- You can create a project by clicking on the file-new-build project or click on "New Project" on the Welcome page.
- 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.
- 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.
- 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.
- If you want to debug, you can click Debug-step-by-step (F10) or step-by-step (F11)
- or set breakpoints
- 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