some practice c++ code