cplusplus code for computer programming 1