Skip to main content
formatting
Source Link
sth
  • 231.2k
  • 56
  • 288
  • 370
cout << text << i; 

cout << text << i; (The <<The << operator for ostream returns a reference to the ostream, so you can just keep chaining the <<<< operations. That is, the above is basically the same as: cout << text; cout << i; )

cout << text; cout << i; 

cout << text << i; (The << operator for ostream returns a reference to the ostream, so you can just keep chaining the << operations. That is, the above is basically the same as: cout << text; cout << i; )

cout << text << i; 

The << operator for ostream returns a reference to the ostream, so you can just keep chaining the << operations. That is, the above is basically the same as:

cout << text; cout << i; 
Source Link
introp
  • 263
  • 1
  • 3

cout << text << i; (The << operator for ostream returns a reference to the ostream, so you can just keep chaining the << operations. That is, the above is basically the same as: cout << text; cout << i; )