cpp sample