VS2012 writing a C language project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.