Quantcast
Channel: nointrigue.comc++ » nointrigue.com
Browsing latest articles
Browse All 4 View Live

C++ maps: an exercise

Why doesn’t the following code compile? Without changing the definition of the struct Employee, can you make it compile so that it does what it’s meant to do? #include <iostream> #include...

View Article



C++ maps exercise: answer

Here are the solutions to the C++ maps exercise I posed in this post. The first set of problems relates to the fact that the Employee class has no default constructor. Here’s why. In the line id[0] =...

View Article

Singletons in C++

To kill a singleton: I found this to be a useful discussion on how to write a singleton class in C++ that ensures the singleton is properly destroyed (for even multithreaded applications).

View Article

GPlates

I recently started doing software development on a casual basis for GPlates, at the School of Geosciences, University of Sydney. Think back to high-school science class where you learnt about Pangaea...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images