How does C++ make empty sentences visible?
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!