Professional Documents
Culture Documents
Chapter 3 Notes
Chapter 3 Notes
3.5
static_cast<DataType>(Value)
3.6
Multiple Assignment and Combined Assigned
X=y=z=5
sum = sum + 1
sum + = 1
3.7
Formatting Output
3.8
C++ passes over spaces
Use getline to include strings with spaces
Ex: getline (cin, name) ;
Use cin.get () to allow you to cin any character even if it is a white space (space,
tab)
Ex: cin.get (ch);