-2
I am making a program where the user can register, search and remove customers. To enter it type "insert [client name]" and a code is generated automatically. I have a problem in the search function. Currently the user has to type: "search x y" where x is an int q identifies whether the search will be done by the client’s code or name and y is the corresponding value. I wanted to do this without asking the user to specify the type of search. Have some way to receive the data and then check if I received an integer or a string?
https://answall.com/help/how-to-ask
– Amadeu Antunes