c++ lab code