Vs2012 Writing C language

Source: Internet
Author: User

Originally I also used vc++6.0 to write C language, but because this version is too old and incompatible with win7,win8,win10 so to download the vs2012, the beginning of the time do not know how to use, now learned to write a tutorial to share a bit.

  

  

  

  

  

  

  

  

  

  

  

  

At this time encountered a problem, VS2012 run console program, console on the flash, this situation in VS2008 and VS2010 these two versions do not exist, VS2012 this version needs to be interrupted by a statement or breakpoint, the statement can be used GetChar () or

System ("PAUSE") or simply enter a statement or add a breakpoint. System ("PAUSE") is in stdlib.h.   

1 #include <stdio.h>2 #include <stdlib.h>34int  main ()  5{6     printf ("Hello world!\n"); 7     System ("PAUSE"); 8     // GetChar (); 9 }

Vs2012 writing the C language

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.