CSCI 1110.005 - Lecture Notes
Chapter 3
Arithmetic Expressions, Function Calls and Output


Contents:


Arithmetic Expressions

 


Function Calls

 

Formatting the Output

        cout << "x = " << x << endl << "y = " << y << endl;

    will output the follow two lines and the cursor will be at the beginning of the third line:

              x = 10
      y = 15 

 

Programming Style


Updated February 8, 1999 by Tom Irby.
Copyright 1999 by Thomas C. Irby.