lab3 in c++ course DD2387 cprog