Source Code from the Book 'Learn On The Mac'.
Explains the C language (offical C99 flavour) and some of the ANSI C Standard Library (strings, files etc.). Each chapter is encapsulated in a separate Xcode project; each code listing is usually in it's own group within the project. To run one particular code listing uncomment out its function call line in 'main.c': it will have main_
at its beginning.
Chapter | Topics Covered | Exercise Solutions |
---|---|---|
Chapter 2: | Programming Basics and Using xCode | N |
Chapter 3: | C Basics: Statements and Functions | N |
Chapter 4: | Introduction to Variables and Maths Operators | N |
Chapter 6: | Controlling Your Programs Flow: if, else, switch | N |
Chapter 7: | Pointers and Parameters: static vars, globals | N |
Chapter 8: | More Data Types: arrays, strings, #define directive | N |
Chapter 9: | The Command Line: Cmd line params and keyboard input | N |
Chapter 10: | Your Own Data Structures: structs, multi-dim arrays, fgets | N |
Chapter 11: | Working with Files: Modularization, fgets, fprintf, fscanf | Y |
Chapter 12: | Handling Errors | - |
Chapter 13: | Advanced Topics | - |