Update Cpp/Assignment 2/Prog2_2.cpp

Removed deprecated function