Let’s say I have an array of strings.
string ban[3] = {"Ben","Lina", "Adam"};
I ask the user to enter his name.How to make sure that the check was not exactly accurate, but for example, if you write not just Adam, but Adam1990, then it was not missed
I thought about creating an array of characters and checking everything by characters, but it’s long and probably pointless
New contributor
user25400560 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.