Wide variety of C++ code to practise for the C++ exam