9781423902096_PPT_ch03
9781423902096_PPT_ch03
9781423902096_PPT_ch03
Chapter 3: Input/Output
Objectives
− Syntax: pow(x,y) = xy
• x and y are the arguments or parameters
varChar
− Is a char variable
− Is the argument (parameter) of the function
• putback function
− Places previous character extracted by the
get function from an input stream back to that
stream
• peek function
− Returns next character from the input stream
− Does not remove the character from that
stream
• Expression is evaluated
• Value is printed
• Manipulator is used to format the output
− Example: endl
• Syntax:
• Example:
− cout << setfill('#');