C++ task2