random learning of cpp