Getting Started with VS, C + + projects

Source: Internet
Author: User

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

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.