void set_x(const int new_x) { x_ = new_x; } ... void display() { ... } } 4. Choosing Meaningful Names 4.1. Variable Names The name formatting conventions described here are essentially the GNU coding standards. These are available online using info . Use lower case for all variable names. For multi-word names, use an underscore as the separator. Use all capitals for the names of constants (i.e. variables declared const and enumerated types). Use an underscore as a word separator. Choose variable names carefully. While studies show that the choice of variable names has a strong influence on the time required to debug code, there are unfortunately no clear and fixed rules for how to choose good names. Review Chapter 9 of Code Complete periodically. In the mean time, here are some general guidelines to follow: · Be consistent! The most important thing is to establish a clear, easily recognizable pattern to your code so that others will be able to understand your implementation and intent as quickly and reliably as possible. · Use similar names for similar data types, dissimilar names for dissimilar types. You are here:CodeIdol > C++ > C/C++ Programming Style Guidelines > page: 56789101112131415
AJAX popular information C# language guides Windows books and cookbooks
.......
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.