编写VB程序,从由字母数字组成的字符串中找出所有大写字母并逆序输出。
2个回答
展开全部
Private Sub Command1_Click()
Dim i As Integer, m As Integer
text2.text=""
i = Len(Text1.Text)
For m = 1 To i
s = Mid(Text1.Text, m, 1)
If Asc(s) >= 65 And Asc(s) <= 90 Then
Text2.Text = s + Text2.Text
End If
Next m
End Sub
Dim i As Integer, m As Integer
text2.text=""
i = Len(Text1.Text)
For m = 1 To i
s = Mid(Text1.Text, m, 1)
If Asc(s) >= 65 And Asc(s) <= 90 Then
Text2.Text = s + Text2.Text
End If
Next m
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-05-10
展开全部
s=你的输入dim sout,stmpfor i = len(s) to 1 step -1stmp = mid(s,i,1)if asc(stmp) >=asc("A") and stmp <= asc("Z") then sout=sout & stmpnextmsgbox sout
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询