C++ attempt with errors

blah blah blah tried the c++ exercise and it's got some bugs yet @androideka