
(1)该程序中共有
(2)实现上述功能的 VB 程序如下,请在划线处填入合适的代码。
Private Sub Command1_Click()
Dim s1, s2 As String
Dim c, p As Integer
s1 = Text1.Text
c = 1
p = 2
Do While p <= Len(s1)
If
c = c + 1
Else
s2 = s2 + Str(c) + Mid(s1, p - 1, 1)
End If

Text2.Text = s2 + Str(c) + Mid(s1, p - 1, 1)
End Sub
(3)若将加框的代码去掉,则输入字符串“RRRRGGBBB”单击压缩后,显示的结果是:

同类型试题

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2


y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

