Preparation knowledge of C + +

Source: Internet
Author: User
Tags mathematical functions

1. The function body is the computer instruction of what the function should do.


2. In the C language, each complete instruction becomes a statement.


3. The statement ends with a semicolon, and you should not omit the semicolon when you enter the code.


4. The Terminator is a semicolon, which is the end tag of the statement and is part of the statement, not the markup between the statements.


5.return 0; This tough guy's return statement applies only to the main () function, not to other functions.
So why is the program interrupt function called Main () because the C + + program must contain a function named Imain ()
Since the MYFIRST.CPP program has only one function, the function must bear the responsibility of main () C + + runtime,
This is usually done starting with the main () function. Therefore, if there is no main (), the program will be incomplete.


The traditional 6.C language is that the header file uses the extension h as an easy way to identify the file type by name.
For example, header file MATH.H supports various C-language mathematical functions, but the usage of C + + has changed. Now the old C header file is converted to C + +
Header files, these files are renamed, the extension h is removed, in order to change to C + + style name, and prefix C in front of the file name
Indicates a language from C.

Preparation knowledge of C + +

Related Article

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.