c++ samples