update pro1.cpp and add pro3.cpp