revise cplusplus gen scripts