make a cpp program work.