1.程序设计思想
(1)定义一个新的字符串
(2)利用for循环随机产生6个数,并将每个数据转换成char类型
(3)产生对话框显示生成的验证码,用户进行输入
(4)提示用户输入是否成功
2.程序流程图
3.源程序代码
4.结果截图