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
Become more proficient on the usage of statements to control the flow of execution through a C++/CLI application.
As far as you need to be concerned as a .NET developer, you can freely interchange them as and when you feel like it.
Conquer some Windows API files and learn to copy your screen's contents into a program.
Have you ever wanted to control your garage door from your smartphone? Here is your chance. Get your hands dirty with an Arduino Garage Door Controller.