Tag: C++ / MFC
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 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 …
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 …
Static classes – what are they?In C#, static classes have one important difference to that of non-static classes: they cannot be instantiated. That is, the new operator cannot be used …
A very basic binary tree implementation in C++ that defines a binary tree node, adds new nodes and prints the tree.Output:
IntroductionIn a previous life I was involved in the design of routing optimization software for the telecoms industry. Finding the least cost route for a traffic demand between communicating network …
Problem OutlineThis I tackled previously when working on the design and implementation of routing optimization algorithms for telecommunications networks. Given that a wide area network with nodes and interconnecting links …
This post is essentially a blatant lifting of Omar Gamil’s CodeProject article on the same subject. I have been using the project as means of getting into C# programming and …
Constructor, destructors and assignment operatorsThere is a rule of thumb in C++ that if a class defines a destructor, constructor and copy assignment operator – then it should explicitly define …