what datatype should i use in a function if the function is to choose something

Hi,may i know what datatype should i use in a function when the function is for user to choose either 2 choices. should it be boolean or should it be void?

for example, the user needs to choose either they want to register using their passport number or identification card number. so when the user click on passport number,there will be another function that will ask the user to enter details based on their decision on the function before so in this case, the program will ask for the user passport number.

so,there will be 2 function
first is for user to choose either to register using passport number or identification card number.
second is for user to key in their details based on the decision the user made from the first function
Possibly

 
enum class PassReg {PassNum, IdentCard};

Last edited on
Registered users can post here. Sign in or register to post.