Some of the use of VS, separate compilation of matters (C + + console program, not empty project, empty project need to add too much, not good), just use vs write C + + feel unfamiliar is very troublesome, put oneself encounter small problem write down, if need people use best.
The main function is finally added with GetChar () to display the console window.
The declarations of functions, classes are written to the. h file, and the definitions are written to the. cpp file.
The Declaration and implementation of the class template are written in the header file. (How the C + + compiler handles templates)
When you write the program will be prompted, press ENTER will go to the next line, if you want to use the prompt, press the TAB key to complete
Each header file has to add these, if there are # include ... Write in front of #ifndef
#ifndef + header file name (uppercase)
#define + header file name (uppercase)
.......
#endif
Ellipses are the contents of a header file
How C + + compilers work (solve a lot of problems, think like a compiler) http://blog.csdn.net/kai8wei/article/details/44774339
The solution allows you to build multiple projects, run and test which right-click to set the Startup project.
Getting Started with VS, C + + projects