Update test.cpp

edit cpp