Using examples of defects found in Miranda IM, Andrey Karpov will formulate some recommendations that will help you to avoid many errors and misprints at the code writing stage.
Latest Miscellaneous Articles - Page 4
A buffer overflow is the result of writing to an element that is outside the boundaries of an array. And yet, certain algorithms need to access the address of one element past the end of an array, albeit with a few important restrictions. Here's the why and how.
Discover how to start and control a third party GUI application, particularly the Notepad text editor, from your own C++ applications.
This article describes how to create stack based allocators for use with STL containers.
Vectors are one of the single most useful and most used objects in the STL. They are easy to use, and remove the burden of memory management from the user. It is possible to partially control memory usage by using functions like
reserve, but nothing is provided to free up excess memory. Users have come up with ways to trim a vector by hand, but with the advent of the new C++0x and its move semantics, the classic solution of copy-swaping has become excessively expensive. This article seeks to find a better solution.
Bjarne Stroustrup talks about the imminent C++0x standard and the forthcoming features it brings, the difficulties of standardizing programming languages in general, the calculated risks that the standards committee can afford to take with new features, and even his own New Year's resolutions.
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
Discover Code::Blocks, an open source IDE for C/C++.
Explore the basics of accessing a Twitter account and look at the ways we can search and interact with the data available to you.
Learn how to create a little Instagram app with Visual Basic.
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.