cpp base code