使用C中的文件实现链接列表 [英] Linked List implementation using file in C

查看:76
本文介绍了使用C中的文件实现链接列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建两个链表并希望合并它们但我想用文件做所有...当用户插入两个链表时,两者都可以存储在文件(t1.txt)中,之后两个列表都应该合并,再次排序列表存储在文件中...任何人都有任何想法,并帮助我.... ??在此先感谢...

I want to create two linked list and want to merge them but all i want to do with the file... When user insert two linked lists both can be stored in file(t1.txt) and after that both lists should be merge and again that sorted list store in file... can any one have any idea and help me out....?? Thanks in advance...

推荐答案

正如SA所说,基本上你有两件事:



1 - 链表类

2 - 文件格式。



您可以阅读文件格式并将项目从那里推送到链接列表。
As SA said, basically you have two things here:

1 - a linked list class
2 - a file format.

You can read your file format and shove the items in to your linked list from there.


这篇关于使用C中的文件实现链接列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆