标题: c++ 作业题 求解 [打印本页] 作者: zignake 时间: 2015-04-08 10:19 标题: c++ 作业题 求解 本帖最后由 zignake 于 2015-04-08 10:35 编辑
C++ 的作业题,做不出来了,请高手解答,谢谢了
作业定义:需要从一个文件里读出文字来,用linked list, 然后再筛选
1 txt文件 需要从一个文件里读出字符来
例 data1.txt
101:021:"Greetings, earthlings, I have come to rule you!"
232:013:Hello, Mother, I can't talk right now,
101:017:Here is a message from an important visitor:
232:015:I am being harangued by a little green thingy.
END
打印出的结果
Message 101
Here is a message from an important visitor:
"Greetings, earthlings, I have come to rule you!"
Message 232
Hello, Mother, I can't talk right now,
I am being harangued by a little green thingy.
怎么按字符读呢?应该按行读,然后分析头部的数字,分成不同的list作者: bruceteen 时间: 2015-04-08 11:13
101:021:"Greetings, earthlings, I have come to rule you!"
232:013:Hello, Mother, I can't talk right now,
101:017:Here is a message from an important visitor:
232:015:I am being harangued by a little green thingy.