cpp delclaration demo