update the file: chapter02/pro1.cpp