Update P7b.cpp

final version