Original: VS2012 writing C language Project
These two days to read the knowledge of C language, the University of the use of the Turbo C for me has been a long time ago, writing C language and VC + +, but this goods in 64 performance is very disappointing, or with the most familiar with the VS bar, did not use the VS C language, today Daoteng a bit , focus on sharing your own process.
1. First you need to have a VS, open the following page as follows, new project;
2. Create a new project and create a new solution
3. Page of the Win32 application that appears after the project is determined
4. Two red box, the console application is the default, the additional options in the empty items need to check their own:
5. Add New Item
6. The default is the file name is the source. cpp, modified to DEMO.C
7. Output the code, and run, the last line adds a getchar (), similar to the role of C # console program Console.readkey (), otherwise the console will jump directly, so use F5 run can have results, there is a way to run when you can use CTRL + F5, so there is no need to add getchar ();
#include <stdio.h>void main () {printf ("Hello vs2012~www.cnblogs.com/xiaofeixiang\n"); GetChar ();}
8. Running Results
VS2012 writing a C language project