+ -
当前位置:首页 → 问答吧 → [c++] Question

[c++] Question

时间:2013-12-22

来源:互联网

My task is recording the msg from the whatsapp where the msg are written on a txt file.
First, I have recorded all the msg by the linked list, using pointer (including name, date, time by using struct)The user need to input a name to search and print all its msg loaded in the dynamic pointer
but the question need me to group the msg of that name by date
e.g.
13-11-2013 Hey, do you remember the ASCII letter codes? Hm, I only know 25 letters I don't know why
14-11-2013 ??? It's a joke!! Oh haha. I get it That's bad Let me try it on Carrie

Please help Thanks

[ 本帖最后由 282741 於 2013-11-28 07:54 PM 编辑 ]

作者: 282741   发布时间: 2013-12-22

简单的方法是...
先copy晒所有the msg of that name
然后做sorting

复杂的方法就一边取资料...同时按时间插入

作者: Susan﹏汪汪   发布时间: 2013-12-22

Can you give some hints or more details??
I still dun know how to do

作者: 282741   发布时间: 2013-12-22

例如有a和b的对话

先copy晒a的对话内容
然后按时间排序

作者: Susan﹏汪汪   发布时间: 2013-12-22

use pointer to copy? have any other method can copy ?

作者: 282741   发布时间: 2013-12-22

https://www.coursera.org/course/pkuic
你试试去这个北大的公开mooc课程上问问助教
有人会较详细教你
免费

作者: dknydknydkny   发布时间: 2013-12-22

引用:原帖由 282741 於 2013-11-29 01:53 PM 发表
use pointer to copy? have any other method can copy ?
不一定copy 的....
你用linked list也可以del晒b的data都一样...

总之做一份只有a的对话list
再排好

作者: Susan﹏汪汪   发布时间: 2013-12-22

热门下载

更多