在C#.net中存储数组 [英] Storing in array in C#.net
问题描述
嗨:
通过从键盘读取字符串来创建字典数据结构,但一次只能输入一个字。
并将单词存储在结构数组中。每个结构都包含一个单词及其计数。然后
按字母顺序对数组进行排序。
按字母顺序打印字典中的条目,查看重复项。请
不要多次显示一个单词。相反,显示每个单词
出现的次数。
请不要使用ArrayList和List< T>在馆藏图书馆。
请有人向我解释这个概念
Thankq
hi:
Make a dictionary data structure by reading in a string from keyboard, but one word at a time.
And store words in Array of structures. Each structure contains a word and its count. And then
sort the array in alphabetical order.
Print out the entries in your dictionary in alphabetical order, watching for duplicates. Do
not display a word more than once. Instead, display a count of how many times each word
appeared.
PLEASE DO NOT USE ArrayList and List<T> in the collections library.
Please Can anybody explain to me this Concept
Thankq
推荐答案
这是作业。
自己尝试一下,然后根据你的尝试发布问题。
查看关于阵列的在线文档 msdn [ ^ ]。
使用C#中的数组工作 [ ^ ]
如何在C#中使用数组 [ ^ ]
请看这个链接我希望它会有所帮助
C#中的数组 [ ^ ]
please see this link i hope it will help
Arrays in C#[^]
这篇关于在C#.net中存储数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!