C++ - A very simple practice program for using DP