add c codes and cpp codes