p代表当前的节点
p->next大学vb计算机考试题库中华文库,p指向的下一个节点==null,说明下一个节点没有
p==NULL这个节点没有
p->next=head 下一个节点是头节点,即第一个节点,这样就不是单链表
p=head这个节点是头节点
vb考试一题
Private Sub Command1_Click()
Dim a(4) As Integer, x As Integer, sum As Integer
n = 4
sum = 0
a(1) = 1
For k = 0 To n - 1
For i = 1 To k + 1
x = k + 2 - i
a(x) = a(x) + a(x - 1)
If x < n - k Then
Exit For
End If
Print x; ; a(x)
sum = sum + a(x)
Next i
Next k
Print sum
End Sub
大学VB期末考试题 将输入的字符按以下规律译成密码:A-Z,B-Y,C-X…
Private Sub Command1_Click()
s = InputBox(请输入原文(不支持中文加密!):)
For i = 1 To Len(s)
zifu = Mid(s, i, 1)
If zifu >= a And zifu <= z Then
zifu = Chr(97 + 122 - Asc(zifu))
ElseIf zifu >= A And zifu <= Z Then
zifu = Chr(65 + 90 - Asc(zifu))
End If
Print zifu;
Next i
End Sub