Level Two exams C + + we have to do some examples of our vs programming in a variety of languages, but with c++6.0 Some of the programming rules are different, below is how we should use vs2012 to solve C + + programming problems, and there are some errors to be solved.
First, create an empty project, as follows:
Then add the new item in the source file:
finally Input Code (note: vs - there is no. h for this kind of thing, change to "#include <iostream>" and use the standard namespace "UsingNamespace std;", in addition, some of the header files should be changed slightly, such as math.h to Cmath).
Such as:
But debugging when the error, as follows:
Precompiled header files from previous versions of the compiler
By querying, simply change the precompiled header-precompiled header to not use precompiled headers in the project properties:
Run as follows:
Note: If you always jump out after running, you can use shortcut keys Ctrl+f5 (equivalent to " start execution (but not debug) ").
VS2012 's C + + programming problem