c++ codes samples