编写输入法程序Application程序,接受用户输入的一段英文文字后,输出其中的字符数、单词数和句子数

扫二维码下载作业帮
2亿+学生的选择
下载作业帮安装包
扫二维码下载作业帮
2亿+学生的选择
application 在译为“应用程序”时是否可数?最好是从字典上找,或有比较权威的依据.
palnewmanm2157
扫二维码下载作业帮
2亿+学生的选择
《英汉双解信息技术词典》上对于application作应用程序解时是这样写的:task which a computer performs or problem which a computer solves(as opposed to an operating system which is the way in which a computer works).其中心语是task and problem,由此判断应该可数,虽然它几乎总是用作定语
为您推荐:
其他类似问题
1.(U)(C)The act of applying.应用,申请:应用、运用或擦敷的行为Something applied, such as a cosmetic or curative agent 化妆品,药膏:敷用物,如化妆品或药膏2.(U)(C)The act of putting something to a special use or purpose(实施:将某事...
扫描下载二维码2991人阅读
import java.io.*;public class test{ public static void main(String[] args) throws IOException& { System.out.print(&请输入一串字母:&);&&&& BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&&& String str=br.readLine();&&& int char1=0,letter=0,sentence=0;&&& for(int i=0;i&str.length();i++)&&& {&&&&& char ch = str.charAt(i);&&&&& if(ch!=' ')&&&&& { char1++;&&&&& }&&&&& if(ch==' '||ch=='/n')&&&&& { //有空格,加一单词&&&&&&& if(i!=0&&str.charAt(i-1)!=' ')&&&&&&& letter++;&&&&& }&&&&& if(ch=='?'||ch=='!'||ch=='.')&&&&& {& &&&&&& & sentence++; &&&&& }&& }&&& System.out.println(&字符数:&+char1);&&& System.out.println(&单词个数:&+letter);&&& System.out.println(&句子数:&+sentence);&}}
import java.io.*;public class test{ public static void main(String[] args) throws IOException& { System.out.print(&请输入一串字母:&);&&&& BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&&& String str=br.readLine();&&& int char1=0,letter=0,sentence=0;&&& for(int i=0;i&str.length();i++)&&& {&&&&& char ch = str.charAt(i);&&&&& if(ch!=' ')&&&&& { char1++;&&&&& }&&&&& if(ch==' '||ch=='/n')&&&&& { //有空格,加一单词&&&&&&& if(i!=0&&str.charAt(i-1)!=' ')&&&&&&& letter++;&&&&& }&&&&& if(ch=='?'||ch=='!'||ch=='.')&&&&& {& &&&&&& & sentence++; &&&&& }&& }&&& System.out.println(&字符数:&+char1);&&& System.out.println(&单词个数:&+letter);&&& System.out.println(&句子数:&+sentence);&}}
&请输入一串字母:take& me to you heart?字符数:17单词个数:4句子数:1
请输入一串字母:hello,I love you?字符数:15单词个数:2句子数:1
个数出错帮我解决这个问题
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:4305次
排名:千里之外2993人阅读
import java.io.*;public class test{ public static void main(String[] args) throws IOException& { System.out.print(&请输入一串字母:&);&&&& BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&&& String str=br.readLine();&&& int char1=0,letter=0,sentence=0;&&& for(int i=0;i&str.length();i++)&&& {&&&&& char ch = str.charAt(i);&&&&& if(ch!=' ')&&&&& { char1++;&&&&& }&&&&& if(ch==' '||ch=='/n')&&&&& { //有空格,加一单词&&&&&&& if(i!=0&&str.charAt(i-1)!=' ')&&&&&&& letter++;&&&&& }&&&&& if(ch=='?'||ch=='!'||ch=='.')&&&&& {& &&&&&& & sentence++; &&&&& }&& }&&& System.out.println(&字符数:&+char1);&&& System.out.println(&单词个数:&+letter);&&& System.out.println(&句子数:&+sentence);&}}
import java.io.*;public class test{ public static void main(String[] args) throws IOException& { System.out.print(&请输入一串字母:&);&&&& BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&&& String str=br.readLine();&&& int char1=0,letter=0,sentence=0;&&& for(int i=0;i&str.length();i++)&&& {&&&&& char ch = str.charAt(i);&&&&& if(ch!=' ')&&&&& { char1++;&&&&& }&&&&& if(ch==' '||ch=='/n')&&&&& { //有空格,加一单词&&&&&&& if(i!=0&&str.charAt(i-1)!=' ')&&&&&&& letter++;&&&&& }&&&&& if(ch=='?'||ch=='!'||ch=='.')&&&&& {& &&&&&& & sentence++; &&&&& }&& }&&& System.out.println(&字符数:&+char1);&&& System.out.println(&单词个数:&+letter);&&& System.out.println(&句子数:&+sentence);&}}
&请输入一串字母:take& me to you heart?字符数:17单词个数:4句子数:1
请输入一串字母:hello,I love you?字符数:15单词个数:2句子数:1
个数出错帮我解决这个问题
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:4308次
排名:千里之外扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
下载作业帮安装包
扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
输入一个英文句子,统计其中单词的个数,输出最长单词在文本中的位置(是文本中的第几个字符)和长度;c++的从键盘输入一个英文句子,统计其中单词的个数,并输出最长单词在文本中的位置(是文本中的第几个字符)和长度;单词的界定:单词是由空格、换行符号、标点符号等分隔的字母和数字组成的连续字符串;从键盘输入一个英文句子,统计其中单词的个数 这个我会~但是后面的就不会了
扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
Private Sub maxlengthword(ByVal str1$,ByRef maxword$)Dim i%Dim temp$i = InStr(str1," ")maxword = ""Do While i > 0temp = Mid(str1,1,i - 1)If Len(temp) > Len(maxword) Then maxword = tempstr1 = Mid(str1,i + 1)i = InStr(str1," ")LoopIf Len(str1) > Len(maxword) Then maxword = str1TextBox2.Text = maxwordEnd SubPrivate Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Button1.ClickDim str1 As String,m As Stringm = ""str1 = TextBox1.Textmaxlengthword(str1,m)End Sub
为您推荐:
其他类似问题
扫描下载二维码

我要回帖

更多关于 程序编写 的文章

 

随机推荐