用VB设计一个程序,将输入的字符串以反序显示
答案:2 悬赏:20 手机版
解决时间 2021-03-13 02:13
- 提问者网友:感性作祟
- 2021-03-12 13:13
用VB设计一个程序,将输入的字符串以反序显示
最佳答案
- 五星知识达人网友:逐風
- 2021-03-12 14:08
Private Sub Command1_Click()
Dim S As String, T As String
S = InputBox("输入一个字符串")
Print T
Dim I As Integer
For I = Len(S) To 1 Step -1
T = T & Mid(S, I, 1)
Next
Print T
End Sub最简单的Private Sub Command1_Click()
Dim S As String, T As String
S = InputBox("输入一个字符串")
'T = StrReverse(S)
End Sub
Dim S As String, T As String
S = InputBox("输入一个字符串")
Print T
Dim I As Integer
For I = Len(S) To 1 Step -1
T = T & Mid(S, I, 1)
Next
Print T
End Sub最简单的Private Sub Command1_Click()
Dim S As String, T As String
S = InputBox("输入一个字符串")
'T = StrReverse(S)
End Sub
全部回答
- 1楼网友:独行浪子会拥风
- 2021-03-12 14:21
Public Function reverseStr(ByVal revStr As String) As String
reverseStr = StrReverse(revStr)
End Function
reverseStr = StrReverse(revStr)
End Function
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯