C++ source codes for practice and testing