Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to write the name of C++

Shulou Source: shulou.com Published: 2022-06-01 19:28:04 11月26日 Update

This article introduces the relevant knowledge of "how to write the name of C++". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

ES.7: general and local names should be short, while special and non-local names should be long.

Reason (reason)

Readability. Avoid conflicts between extraneous non-local names.

Example (sample)

Conventionally, short local variables can increase readability.

Template / / good

Void print (ostream& os, const vector& v)

{

For (gsl::index I = 0; I < v.size (); + + I)

Os

Tags: Part name function brevity code variable meaning example Category special content readability situation more knowledge length utility achievement next between Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Apple Huawei Shulou Technology Microsoft