In a program I'm working on, I normally scan for 1 character input, (w,a,s,d)
cin >> input;
But I want to make it so that if the user enters 'p', for example, to further allow him to enter 2 more values.
for example, entering 'a' will move left. But entering 'p 3 100' will place the number 100 in array position 3.
Id prefer that I dont have to press enter after inputting p, because that just means add another condition statement for if (input==p)