c++ ex1-3