Programming in C++ Numeric Types, Expressions, and Output Dale/weems/Headington
1 Numeric Types, Expressions, and Output
Programming in c++ Chapter 3 Topics 8 Constants of Type int and float Evaluating Arithmetic Expressions e Declaration for Numeric Types 8 Implicit Type Coercion and Explicit Type Conversion Calling a Value-Returning Function s Using Function Arguments s Using C++ Library Functions in Expressions Calling a Void Function % C++ Manipulators to Format Output s String Operations length, size, find, substr
2 Chapter 3 Topics v Constants of Type int and float v Evaluating Arithmetic Expressions v Declaration for Numeric Types v Implicit Type Coercion and Explicit Type Conversion v Calling a Value-Returning Function v Using Function Arguments v Using C++ Library Functions in Expressions v Calling a Void Function v C++ Manipulators to Format Output v String Operations length, size, find, substr
Programming in c++ C++ Data Types sImple structured integral enum floating array struct union class har short int long bool float double long double address pointer reference
3 C++ Data Types structured array struct union class address pointer reference simple integral enum char short int long bool floating float double long double
Programming in c++ C++ Simple Data Types simple types integral floating char short int long bool enum float double long double unsigned
4 C++ Simple Data Types simple types integral floating char short int long bool enum float double long double unsigned
Programming in c++ Standard Data Types in C++ sIntegral Types represent whole numbers and their negatives declared as int, short, or long & Floating Types represent real numbers with a decimal point declared as float, or double &Character Type represents single characters declared as char
5 Standard Data Types in C++ vIntegral Types • represent whole numbers and their negatives • declared as int, short, or long vFloating Types • represent real numbers with a decimal point • declared as float, or double vCharacter Type • represents single characters • declared as char