add some old c and cpp codes