Example for cplusplus