I'm planning a function that takes the user's input (4 integers) and checks if each integer is bigger than 1 and smaller than 6, I wanted something simple, and thought that if the function 'getche()' (I want to use this particular function because I don't want the user to type the 'enter' key after he gives the input) could get four integers in one code.
I want to avoid this(if possible):
int num1 = 0, num2 = 0, num3 = 0, num4 = 0;
num1 = getche();
num2 = getche(); ...
And I was thinking if something like this is possible:
int num = 0;
num = getche(4)
Thanks.