C/C++ programming practice