阅读背景:

文件输入/输出,在调用案例1后程序崩溃

来源:互联网 

I have been using stack overflow for a while now to get through my first c++ class and this is my first time asking a question, so please bear with me. This problem is about file in/out - simple reading and writing. I am supposed to crunch through a no frills text file and determine whether a string has leading or trailing punctuation, split them off, count punctuation and letters (not punct in the middle of strings as in the word can't or www.google.com) I have the loops down (or so I thought) but recently my program crashes every time I invoke case 1 of the main switch statement to select a file to in. Case 1 does the primary crunching to determine the longest string, shortest string, punct count , and letter count. I have been using stack overflow for a while no




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

分享到: