add atoi and cpp samples