Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Excuse me: int n;; CIN & gt; & gtn; getchar(); What does this mean? What's the difference between using them together and using them separately? thank you
Excuse me: int n;; CIN & gt; & gtn; getchar(); What does this mean? What's the difference between using them together and using them separately? thank you
Use alone:

CIN & gt; & gtn means to enter an integer and put n;

Getchar () means reading a character.

Contact information:

Getchar () receives any character after the number you enter.

Any character will end the input.