c++ code p1
c++ code p2