in strings, what should i use? cin.getline or cin or getline(cin, var)?
right now i'm using cin to take in 3 variables and then rearranging them. however if only 2 variables are filled in, then it should execute my instructions. however cin waits for the third variable to be inputted before proceeding. which i understand. what can i use to take in 3 variables but if 2 are given, then it should proceed?
i was thinking of searching for a "null" string somehow and then use a conditional if statement.
should i use getline to take the whole line as a string and then divide it accordingly?