如何创建多个链接列表,以查找给定输入文件中单词的索引或位置。 [英] How do I create a multiple linked list, to find the index or position of words from a given input file.

查看:60
本文介绍了如何创建多个链接列表,以查找给定输入文件中单词的索引或位置。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.


这篇关于如何创建多个链接列表,以查找给定输入文件中单词的索引或位置。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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