cpp demo