Create sample for c++ agent,cpp