计算以数组中特定字母开头的单词数 [英] count the number of words that begin with a particular letter in an array
本文介绍了计算以数组中特定字母开头的单词数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何计算以数组中特定字母开头的单词数量
并在(vb.net语言)列表框中打印这些单词
How do I count the number of words that begin with a particular letter in the array
and print these words in a list box in ( vb.net language )
推荐答案
我不知道这是否会对你有所帮助,因为我使用c ++进行类似的任务,但我正在努力帮助她。
我建议创建一个for循环来输入数组的每个元素。
现在使用这个网站; http://www.paulhorst.com/c241/string.htm [ ^ ]
我注意到了我可以检查字符串的每个字母。
然后我会增加一个柜台。
对不起我不是很好但我试过我最好的
I dont know if this will help you because i used c++ for a similar task, but i am trying to help her.
I would suggest to create a for loop to enter each element of the array.
Now using this website; http://www.paulhorst.com/c241/string.htm[^]
I noticed that i can check each letter of the string.
then i would increment a counter.
Sorry i am not really very good but i tried my best
这篇关于计算以数组中特定字母开头的单词数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文