Teach Yourself Mac C++ Programming in 21 Days
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
PDF page 12
Teach Yourself Mac C++ Programming in 21 Days
Teach Yourself Mac C++ Programming in 21 Days Static Variables in Functions ... ............. ..................................................... 50 Inline Functions .................................. ........... ..... ....... ............................... 51 Exiting Functions ................. ................. ............ ......... ............... ........... .... . 53 Default Arguments ......... ... ....................................... .. ............................... 53 Function Overloading ............................................................................... 55 Summary ................. ... .............. ................................. ...................... .... ...... 58 Q&A ... .................. ......................................... .. ... ....... ......... ...................... 60 Workshop ..... ........ .................. ........................ ...... ............... .... ................. 60 Quiz ............... ............. ....... ..... ............... ... ........................................... 60 Exercise .......... ....... .......................................... ....................... .- ...... ....... 63 Day 3 Operators and Expressions 65 Arithmetic Operators ... ....... .......... ................. ....... .......... .. ........................ 66 Arithmetic Expressions .... ................................ ........................ .. ......... ....... 69 Increment Operators .......... ............................... ................................... ..... 70 Assignment Operators ....... .............. .... ....... ......... ..................... ....... ....... ... 72 The sizeofOperator .. .. ... .. .......................................................................... 75 Typecasting .................................. .............. ........... ..... ....... ........ ................ 78 Relational and Logical Operators ............. ... .' .. .......... ................................. 81 Boolean Expressions ........................... ........ ....... ....... ... ...... ..... ....... ... ... ...... 83 Bit-Manipulation Operators ...................................... .................... ...... ...... 87 T he Comma Operator .,. ... .................................. .................... .... ... ......... ... 89 Operator Precedence and Evaluation Direction ...................... ....... ....... ..... 90 Summary ......... ......... ....... ................... .. ..... .......................... ........ .... ........ .. 92 Q&A .... ............ .......... ..... ... ......... .. ............... ............................................. 93 Workshop ..... ................................................ .. ..................... .................. ... 94 Quiz ......... ........... ....................... ... ......... .......................... ...... .............. 94 Exercises ................ ......... ... ....... .... ....... ....... ................ ....... ............ ....... 96 Day 4 Managing 1/0 97 Formatted Scream O utput ............... ........... ...................... ...................... ... 98 Stream Input ...................... ... .................................................................. 100 The print/Function ................................................................................ 102 Summary ...... ..... ..... ......... ....................... ............................... ..... ........ .. ... 108 Q&A .... ........ .......... ..... .. ....................................... ......... ...................... .... 108 Workshop ............................ .. ......... .......... .. .......................... ...... ............ 108 Quiz ..... ....................... ... ... .... ..... ......................... ...... ........... ..... .... ..... 109 Exercises .............. ............ ............... .................................................... 109 Day 5 Decision-Making Constructs 111 The Single-Alternative if Statement .......................... ........... .......... ......... 112 The Dual-Alternative if-else Statement ........... .................... ..................... 114 Potential Problems with the Dual-Alternative if Statement ........... ...... ....... .. ..... ........................... 116 The Multiple-Alternative if-else Statement ..... ....... ... ........ .. .... ................ .. 117 The switch Statement .......... ........... ....... ............... .................. ........... ...... 120 Nested Decision-Making Constructs ..... .......... ... ..... ... .. .. .... ... .................. 124 Xll
Reading notes: Table of contents with dot leaders and OCR spacing artifacts; some page numbers and characters are uncertain. Some entries contain stray characters such as '.-' and ' .' that may be OCR noise.
- Languages
- English