Multiple inputs on one line
Yes, you can input multiple items from cin, using exactly the syntax you describe. The result is essentially identical to: cin >> a; cin >> b; cin >> c; This is due to a technique called “operator chaining”. Each call to operator>>(istream&, T) (where T is some arbitrary type) returns a reference to its first … Read more