c++ source codes of various programs