C/C++ practice