School related C++ problems