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;