Data Sturcture C++Homework code