commiting a cpp program