Practice programs in C++