Реферат: Билеты по информатике 10 класс: Visual Basic
Case ЗНn }выполняется Sn+1
Sn }
Case Else }
Sn+1 }
End Select }
2
Sub Знаки( )
Dim S As String, Rus As String
Dim nRus As Integer, i As Long
S = InputBox("Введите текст")
Rus = "абвгдежзиклмнопрстуфхцчшщъыьэюяё"
nRus = 0
For i = 1 To Len(S)
If (InStr(Rus, Mid(S, i, 1))) > 0 Then
nRus = nRus + 1
End If
Next i
MsgBox ("Кол-во =" + Str(nRus))
End Sub
3
Sub Swap(S As String, i As Long, j As Long)
Dim c As String
c = Mid(S, i, 1)
Mid(S, i, 1) = Mid(S, j, 1)
Mid(S, j, 1) = c
End Sub
Sub шифр( )
Dim S As String, Sh As String
Dim S1 As String, c As String