Minor C++ program (Source code only available)