The Wayback Machine - https://web.archive.org/web/20160201081134/http://www.codeguru.com/cpp/misc/samples/

Latest Samples Articles

Rubix Cube

Updated: This program presents an original way of the famous Rubik's Cube by an assembly of 27 multi-colored cubies isolated in the space. Even during its deformations, it allows a 3D vision of the cube thanks to the basic MFC graphic functions. This simulation can also rapidly calculate a solution to reordering the Cube.

C++ Programming: A Better Vector Trim Algorithm With Move Semantics

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.

C++ Programming: Implementation of the Licensing System For a Software Product

This article is devoted to the development of the key licensing system for the applications. In the theoretical part of the article, we will examine the cryptography methods, which can be used while implementing the licensing system. Also we will discuss all pros and cons of these methods and select the possible ones for using in the application. In the practical part of the article, we will provide the implementation of the simplest licensing system, which guaranties the protection from cracking even if a hacker knows the source code of an algorithm.

Latest Developer Videos

More...

Latest CodeGuru Developer Columns

Managing Your Drives Using C#

Managing Your Drives Using C#

Sooner or later you'll need to find out about, and deal with, the various storage devices ("drives") available in your system.

Top White Papers and Webcasts

  • Unexpected data loss can occur at any time. Whether due to natural disasters such as floods, hurricanes and tornadoes or to more common events such as water main breaks, building fires and hardware failures, the consequences of data loss can be extensive and far-reaching. As an IT professional, it's up to you to educate your users and ensure a proper backup and disaster recovery plan is in place.

  • 2015 is shaping up to include some of the best innovation the mobile industry has ever experienced. There will be new discoveries, new technologies, and existing giants in the vendor space will test the limits to increase productivity while ensuring the confidentiality, integrity, and availability of data. While all of this innovation is taking place, enterprises must continue to remain vigilant as cybercriminals continue to look for weaknesses to steal company data, and intellectual property by infiltrating …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date