change file name's extension to cpp