C ++ (1) VS Study Notes

visio studio 2012 is one of the developers of the software c ++ language
1. Start vs2012
2. Configuring the IDE
3. Create a simple application
4. custom code editor
5. Add code to the application
6. debug and test applications
7. generate release version of the application

vS software can support multiple programming languages ​​developed

After selecting the c ++ programming language, click the Start vs software (for the first time a long time)
after a second time to start, you can choose a variety of configurations in the toolbar.
IDE is divided into the left side of the toolbar, the Tools menu bar at the top right of the main window space.
Use the Options dialog box from the Tools menu color Customize dialog box personalized custom.

Creating windows console to create the project. (Three ways)
(1) select New, New Project
(2) Click on the New button on the screen
(3) Key: Shift + Ctrl + N
followed by selection WIn32 console, custom project name.
You can see the project program has been opened.
Wrap on the hook and line number click Tools, Options.
You can see the line numbers have emerged.

CPP file in the program are as follows:

#include "stdafx.h"
#include iostream is a library.
using namespace std;

int_tmain(int argc, _TCHAR* ARGV[])
main()
{
cout<<“hello\n”;
return 0
}

In this selection menu, the view, the error list. Just below the screen to see all of the errors

Click Start Debug menu or F5.
Is generally used to set breakpoints,
breakpoints set in the program is successful click mouth, red spots appear.

Before generating the release version, you need to clear the intermediate and output files created during the early generation, to ensure that the final version.

By clicking generate Clean Solution option in the menu bar to complete.
After the local WINDOWS debugger to debug a column changed to release (ie release state), this generates a menu bar click Build Solution F7 keys after the latter can generate solutions.

Published 14 original articles · won praise 5 · Views 2402

Guess you like

Origin blog.csdn.net/m0_37536859/article/details/90721686