【答案解析】①打开本题工程文件。 ②分析并编写程序代码。程序提供代码如下: Form1 Private Sub Command1_Click() Form2.Text1="" Form2.Text2="" Form2.Text3="" Label1.Caption="" Form2.Show End Sub Private Sub Command2_Click() Form3.Text2="" Label1.Caption="" Form3.Show End Sub Form2 Private Sub Command1_Click() Text1="" Text2="" Text3="" End Sub Sub writeusers() ′n=n+? users(n,1)=Text1 users(n,2)=Text2 End Sub Private Sub Command2_Click() If Text=""Then MsgBox("必须输入用户名!") Text1.SetFocus ′ElseIf finduser(Trim$(Text1))>?Then MsgBox("此用户名已经存在!") ElseIf Text2<>Text3 Then MsgBox("口令验证错误!") Else writeusers ′?="注册成功" Form2.Hide End If End Sub Form 3 Private Sub Command1_Click() k=finduser(Trim$(Text1)) ′If k=?Then MsgMox("没有注册!") ′ElseIf Trim$(Text2)<>users(?)Then MsgBox("口令错误!") Else Form1.Lable1.Caption="登录成功!" Form3.Hide End If End Sub 程序结束 【参考答案】 Form2中第1个?处:1 Form2中第2个?处:0 Form2中第3个?处:Form1.Label1 Form3中第1个?处:0 Form3中第2个?处:k,2 ③调试并运行程序,关闭程序后按题目要求存盘。