c/c++ practice