Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How does C++ make empty sentences visible?

Shulou Source: shulou.com Published: 2022-06-01 19:30:40 10月03日 Update

This article mainly explains "how C++ makes empty sentences visible". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought. Let's study and learn "how C++ makes empty sentences visible".

ES.85: make empty statements visible

Reason (reason)

Readability.

Readability

Example (sample)

For (I = 0; I < max; + + I); / / BAD: the empty statement is easily overlooked

V [I] = f (v [I])

For (auto x: v) {/ / better

/ / nothing

}

V [I] = f (v [I]); Enforcement (implementation recommendation)

Flag empty statements that are not blocks and don't contain comments.

Tags do not have empty statements that are enclosed and have no comments.

Thank you for your reading. the above is the content of "how C++ makes empty sentences visible". After the study of this article, I believe you have a deeper understanding of how C++ makes empty sentences visible. The specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Empty sentences empty words empty words learning content reasons readability that is suggestions ideas situations articles more tags comments knowledge knowledge points examples articles follow Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Huawei OPPO Reno Redmi macOS