This is the second article on avoiding certain errors at the early stage of code writing. In the previous post, we have already advised you to avoid a large number of calculations in one expression. However, we should investigate this question in detail. Let's see what's dangerous about complex expressions and how we can avoid many logical errors.
Latest C++ Articles - Page 3
The materials collected in this article will be useful for authors of articles, books and blogs. Examples of errors can be used to demonstrate the advantages of different programming styles -- for instance, why you should not try to make your code shorter by writing long expressions.
Andrey Karpov checks Apache HTTP Server with PVS-Studio and discusses the errors and false reports returned.
Microsoft has an extremely limited set of Time Zone functions. This API will allow the full use of Time Zones in your Windows App.
C++ used to lack a special value to indicate a null pointer, which led to some problems. The new standard introduces a new reserved word nullptr, to designate a constant rvalue that represents a null pointer. Read on to learn more.
Strongly-typed enumerators, provided by the new C++ standard, solve the known problems with the traditional enumerators. The new standard brings a new kind of enumerator, introduced with 'enum class,' called strongly-typed enums.
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
Discover Code::Blocks, an open source IDE for C/C++.
There's no shortage of functionality built into the .NET framework to help you encrypt and secure your data. Follow along and feel more secure.
Create a multi-channel application with DevExtreme and Visual Studio.
Arun Karthick introduces you to the state machine model and shows you how to create a simple working state machine sample using the .NET framework in the C# language.