sample code cpp file