C + + Primer Plus reading notes-1th Chapter Preparatory knowledge

Source: Internet
Author: User

1th Chapter Preparation of knowledge

1. Ritchie hopes to have a language that combines the efficiency of low-level languages, the ability to access hardware, and the versatility and portability of high-level languages, so he developed the C language based on the old language.

2. After a certain degree of success in C + +, Stroustrup added a template, which makes it possible to perform generic programming.

3. To support c++11 in Linux, compile the source file with the-STD = c++0x option:

g++-std = c++0x use_auto.cpp

4. After the program is finished, some Ides automatically close the window, and some Ides do not close. To see the output, you can add some code at the end of the program:

Cin.get ();

Cin.get ();

return 0;

}

The first cin.get () may capture the ENTER key that was pressed at the end of the input, so a second cin.get () is required to put the program in a wait state.

C + + Primer Plus reading notes-1th Chapter Preparatory knowledge

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.