c++ task2 ?