third homework c++managesystem