Chapter3compsci

Chapter3compsci - Chapter3 Chapter3topics...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 3 15:14 Chapter 3 topics Constants of type int and float Evaluating Arithmetic Expressions Implicit type coercion and explicit type conversion Calling a value returning function Using C++ library functions in expressions Calling void function C++ Manipulators to format output String operations length, find, and substring C++ Data types Simple Integral Char Short Int Long Bool Enum Floating Float  Double Long double Address Pointer Reference
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Structured Array Struct Union class
Background image of page 2
15:14 Division Operator The result of the division operator depends on the type of its operand. If one or both operands has a floating point type, the result is a floating point type.  Otherwise, the result is an integer type. Examples:  11/4 has value 2 11.0/4.0 has value 2.75 11/4.0 has value 2.75 Modulous operator The modulous operator (%) can only be used with integer type operands and always  has an integer type result
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/11/2011 for the course SYCS 101 taught by Professor Staff during the Fall '10 term at Howard.

Page1 / 5

Chapter3compsci - Chapter3 Chapter3topics...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online