如何比较文本文件中不同名称的长度? [英] How to compare the length of different names in a text file ?

查看:91
本文介绍了如何比较文本文件中不同名称的长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过阅读字符无法比较姓名长度



我尝试过:



i试图分开长度但实际上无法

cant compare the length of names through reading characters

What I have tried:

i have tried to separate the lengths but unable to actually

推荐答案

如果你的意思是'如何比较不同单词的长度在文本文件'中,您可能首先收集所有单词(例如,参见 c ++ - 分割字符串最优雅的方式? - Stack Overflow [ ^ ])然后比较它们的长度。
If do you mean 'how to compare the length of the different words in a text file' then you might first collect all the words (see, for instance c++ - Most elegant way to split a string? - Stack Overflow[^]) and then compare their length.


这篇关于如何比较文本文件中不同名称的长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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