update the cpp template to my favor format