Some Cplusplus Code