18. A Simple Program: Adding Two Integers(Cont) Concatenating stream insertion operations Use multiple stream insertion operators in a single statement Stream insertion operation knows how to output each type of data Also called chaining or cascadia ing Example e std: i cout <<sum is < number1 number 2 < std: : end Outputs" Sum 1s“ Then, outputs sum of number 1 and number 2 Then, outputs newline and flushes output buffer o 2007 Pearson Education, Inc. All rights reserved© 2007 Pearson Education, Inc. All rights reserved. 11 18.3 A Simple Program: Adding Two Integers (Cont.) • Concatenating stream insertion operations – Use multiple stream insertion operators in a single statement • Stream insertion operation knows how to output each type of data – Also called chaining or cascading – Example • std::cout << "Sum is " << number1 + number2 << std::endl; - Outputs "Sum is “ - Then, outputs sum of number1and number2 - Then, outputs newline and flushes output buffer