cpp sample programs