# Teach Yourself Mac C++ Programming in 21 Days — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-teach-yourself-mac-c-programming-1994-b286c4/2)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-teach-yourself-mac-c-programming-1994-b286c4/2#scan-71f969519a256aa83479c0d15b2f3c63ddde549818db009c2de4d36825c02835)

Teach Yourself Mac C++ Programming in 21 Days

Transcribed text:

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

[Original PDF page 12](https://www.vintageapple.net/files/beb94f888f1f419795959e28bc672bd0f1636a543e0905916882a43f44dc852a/Teach_Yourself_Mac_C-_Programming_1994.pdf#page=12)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-teach-yourself-mac-c-programming-1994-b286c4/1.md)
