Author: Andy
A quick recipe on how to get started with Qt in Ubuntu Linux using a simple example program.1. Obtain QT4Run these from the command line:
In a nutshell, the factory design pattern enables the practitioner to create objects that share a common theme but without having to specify their exact classes. In essence the factory …
Interfacing Excel in C++ is task that I needed to overcome recently, so I thought I would post some code and instructions on the said topic. Some online articles that …
A summary with code samples of the set operations that come with STL: union, intersection, symmetrical difference and set difference.For consistency, the two sets of integer vectors used in each …
Following on from a previous posting on genetic algorithm based routing optimization, further improvements have been made and the source code has been made available. This software is written using …
A guide to getting started with Windows graphics applications for the very first time. The Windows Graphics Device Interface (GDI) forms the basis of drawing lines and objects, and from …
An introduction to using template classes in C++, that starts extremely simply and builds up from there…
A generic Print functionA way of using STL algorithms combined with template functions as a means of printing the contents of any type of STL container (eg a std::vector), containing …
A simple C++ implementation of Kruskal’s algorithm for finding minimal spanning trees in networks. Though I have a previous posting that accomplishes exactly the same thing, I thought that a …
By definition you cannot sort a std::map by value, since a std::map sorts its elements by key. This posting documents a way to get around this by dumping std::map key-value …