郁闷!这道题目怎么编?
编写一程序输出一个由若干单词构成的字符串中的最长单词及其长度,若字符串中有多个单词满足条件须将这些单词全部输出。(注:程序书写要规范)
例:输入字符串为“Some states use income tax in addition to sales tax to raise their revenues.”
输出应为:
最长单词:addition revenues
单词长度:8
编写一程序输出一个由若干单词构成的字符串中的最长单词及其长度,若字符串中有多个单词满足条件须将这些单词全部输出。(注:程序书写要规范)
例:输入字符串为“Some states use income tax in addition to sales tax to raise their revenues.”
输出应为:
最长单词:addition revenues
单词长度:8
2006-01-05 16:24
2006-01-05 17:15
2006-01-05 17:24
难道你的程序只对这个字符串进行处理
2006-01-05 17:41
2006-01-05 18:20

2006-01-07 00:08
2006-01-07 06:55
2006-01-07 11:42
2006-01-07 11:44
2006-01-07 19:42