问题描述
我正在为使用C#的10个虚构客户创建一个虚构的网上银行计划。我已经为每个客户创建了用户名以及创建密码限制策略。
理想情况下该程序应该运行:
请输入您的用户名:Johnbanks
客户John Smith请输入您的密码:eASY-toHac
从您难忘的数据中输入字符3:e
从您难忘的数据中输入字符6:7
从您难忘的数据中输入字符8:w
成功登录客户John Smith
我需要一些帮助来创建一段代码,它将要求3个字符,这些字符总是以数字顺序请求,即它会要求1,4和7而不是4, 1&7
有没有人创建过这样的程序?如果是这样,他们可以就如何正确布局代码提供一些指导。
谢谢,
Niall
Hi, I'm creating a fictional online banking program for 10 fictional clients using C#. I have already created the Usernames for each client as well as creating a password restriction policy.
Ideally the program should run:
Please enter your username: Johnbanks
Client John Smith please enter your password: eASY-toHac
From your memorable data please enter character 3: e
From your memorable data please enter character 6: 7
From your memorable data please enter character 8: w
Successful login of client John Smith
I need some help creating a piece of code that will request 3 characters which are always requested in numeric order i.e it would ask for 1, 4 & 7 and never 4, 1 & 7
Has anyone created a program like this? and if so could they offer me some guidance on how I should correctly layout the code.
Thanks,
Niall
推荐答案
这篇关于虚构的在线银行计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!