Update lab2_7.cpp