add assignment4.cpp ,and modified the test.py