C + + Primer notes (i)

Source: Internet
Author: User

The "C + + Primer" that started reading yesterday is really good. I hope this week to read, take notes every day, in order to review later.

The main function returns a value to the operating system operating system through the value returned by the main function to determine whether the program has successfully executed the main function so that the only function that is explicitly called by the operating system the main function return value must be of type int The return value type must be the same as the return type of the function CIN standard input cout standard output CERR standard error Clog object is used to generate general information about program execution Endl is called the manipulator (manipulator ) output line-wrapping effect, and  refreshes the buffer associated with the device (buffer) std:: namespace annotations are worse than no comments on non-nested errors because they mislead the latter The dot operator (.) applies only to objects of the class type: The left operator must be an object of the class type, and the right operator must specify a member of that type (not an object or a value) Smalltalk and Python check the type of object in the statement C + + is a static type (statically typed) language, which performs type checking at compile time. before you can use a name in a program, you must first tell the compiler the type of the name. Static type checking can help us to find errors earlier. one of the main goals of C + + is to allow programmers to customize types, and these types are as easy to use as built-in types.

C + + Primer notes (i)

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.