用VB找出一個英文句子中最長的單詞,並輸出其長度
題目:
用VB找出一個英文句子中最長的單詞,並輸出其長度
這是最後效果圖.要用到split 函數
解答:
Private Sub Command1_Click()
Dim stra() As String,changdu As Integer
stra = Split(Text1.Text," ")
For i = LBound(stra()) To UBound(stra())
If changdu
題目:
用VB找出一個英文句子中最長的單詞,並輸出其長度
這是最後效果圖.要用到split 函數
解答:
Private Sub Command1_Click()
Dim stra() As String,changdu As Integer
stra = Split(Text1.Text," ")
For i = LBound(stra()) To UBound(stra())
If changdu
添加新評論