The law of Construction read Note 03

Source: Internet
Author: User

Code style Principle: Concise, easy to read, no two-dimensional.

Code specification: (1) indent (2) line width (3) brackets (4) line break with blank {} lines (5) branch (6) name (7) Underline (8) case (9) Comment

Code Design Specification: (1) function (2) Go to (3) error handling (4) classes in C + +

When it comes to code specifications, I'm doing so poorly that I didn't even have the slightest sense of this, even the least of the comments, which led to not only the other people's eyes, but the fact that I couldn't understand them. And the code is very confusing, it is difficult to distinguish the task fast block. As for the function Ah, class AH what I do not know why to use, knowledge this time I am learning so I want to use, other times can not use. In fact, the function can greatly reduce the amount of code, should learn ingenious. Programming habits are not good, bad habit should be slow to get rid of, let their code specifications, beautiful.

The law of Construction read Note 03

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.