[VB]:编写一个函数过程Strrev(),能将字符串参数反转顺序后返回。
展开全部
Private Function Strrev(s1 As String) As String
Dim s As String
For i = 1 To Len(s1)
s = s & Mid(s1, Len(s1) - i + 1, 1)
Next i
Strrev = s
End Function
嘿嘿 顺手刚写的 还是热乎的呢
Dim s As String
For i = 1 To Len(s1)
s = s & Mid(s1, Len(s1) - i + 1, 1)
Next i
Strrev = s
End Function
嘿嘿 顺手刚写的 还是热乎的呢
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Function Strrev(S As String) As String
Dim i As Long
Strrev = ""
For i = 1 To Len(S)
Strrev = Mid(S, i, 1) + Strrev
Next i
End Function
Dim i As Long
Strrev = ""
For i = 1 To Len(S)
Strrev = Mid(S, i, 1) + Strrev
Next i
End Function
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |