Study after the Dragon Boat Festival

Source: Internet
Author: User
Tags mathematical functions

Busy Dragon Boat Festival has passed, I should continue my C + + is said to allow language learning, today to go on the last study began,a+b+c problem:

(2) Mathematical functions: square root function sqrt(), sine sin (),cosine cos (),

(3) If

(4) Code style indentation:

(5) Question-Mark expression:

A question mark expression is a shorthandfor a if-else statement in the form of:( condition )? Value 1': ' Value 2'; when the condition conforms to Yes, the value of the expression is "value 1 ", otherwise" value 2 ".

(6) Divide the problem:

(7) Use of namespaces:

The scope of the namespace (namespace) and the scope of thedeclaring variable are similar.

(8) Conditional statement Switch-case

Study after the Dragon Boat Festival

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.