c++ reader program