如何创建多个链接列表,以查找给定输入文件中单词的索引或位置。

问题描述:

C中用于创建多列表的代码。输入一个单词的文件,输出应该是与他们的位置相关的单词列表。



我尝试了什么:



我是编程新手。我知道C中的基本程序,这对我来说是全新的。我正在学习如何使用多个链表。

A code in C to create a multilist. Input a file of words and output should be the list of words with their position.

What I have tried:

I'm new to programming. I know basic programs in C, and this is completely new for me. I am learning how to use multiple linked list.

我猜你还没有使用谷歌提供一堆教程。我认为最适合你的是观看一些视频



作为热身:双链表具有指向其前任及其跟随者的指针(或引用)。第一个元素有0有前驱,最后一个有0作为它的跟随者。
I guess you havent used google which offers a bunch of tutorials. I think the best for you is watching some video.

As warm up: a double linked list has a pointer (or a "reference") to its predecessor and its follower. The first element has 0 has predecessor and the last has 0 as its follower.