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 Visual C++ / C++ Articles - Page 5
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.
The article describes a few C++ tricks that look uncommon but amusing.
Microsoft has an extremely limited set of Time Zone functions. This API will allow the full use of Time Zones in your Windows App.
This article discusses the new C++ Elmax XML Library feature to implement Linq-To-XML node creation to write XML files. Linq-To-XML node creation is the natural way to create nodes with code that is structurally identical to resultant XML.
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
The Transactional File System (TxF), which allows access to an NTFS file system to be conducted in a transacted manner through extensions to the Windows SDK API. MFC 10, has been extended to support TxF and related technologies. This support allows existing MFC applications to be easily extended to support kernel transactions.
ADO.NET is used to access data. Learn how easy using ADO.NET is in this step-by-step guide!
Learn how to use globalization in your Visual Basic .NET programs.
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.