C/C++ programming project 1