A set of frequently needed source codes for C++