modify application file to cpp format.