C++ laboratory