Programming tasks C++