阅读背景:

如何在C ++中更改存储在字符串中的文件扩展名?

来源:互联网 

Alright here's the deal, I'm taking an intro to C++ class at my university and am having trouble figuring out how to change the extension of a file. First, what we are suppose to do is read in a .txt file and count words, sentences, vowels etc. Well I got this but the next step is what's troubling me. We are then suppose to create a new file using the same file name as the input file but with the extension .code instead of .txt (in that new file we are then to encode the string by adding random numbers to the ASCII code of each character if you were interested). Being a beginner in programming, I'm not quite sure how to do this. I'm using the following piece of code to at first get the input file:Alright here's the deal, I'm taking an intro to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: