Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to input multiple variables with cin?
How to input multiple variables with cin?
Do you want to confirm the quantity or not?

The number of uncertain variables can be like this

int a; //Create 1 integer variables

And (CIN >; & gtA)// At first glance, it is an infinite input, but actually it will be deduced when the input is not an integer variable.

{

cout & lt& lta & lt& ltendl

}

If the number of variables is determined, take the two answers upstairs.