Practical Exercises on the Computational Subjects You Keep Avoiding (Like C)
De som köpt den här boken har ofta också köpt Brave New Words av Salman Khan (inbunden).
Köp båda 2 för 718 krZed Shaw is an avid guitar player, programmer, and writer whose books teach people all over the world how to write software. His book Learn Python the Hard Way has been read by millions of people around the world. His software has been used by many large and small companies. His essays are often quoted and read by members of many geek communities. He is an entertaining and lively writer, who is sure to keep you laughing and make you think.
Acknowledgments xiv
This Book Is Not Really about C xv
The Undefined Behaviorists xvi
C Is a Pretty and Ugly Language xvii
What You Will Learn xviii
How to Read This Book xviii
The Videos xix
Exercise 0: The Setup 2
Linux 2
Mac OS X 2
Windows 3
Text Editor 3
Exercise 1: Dust Off That Compiler 6
Breaking It Down 6
What You Should See 7
How to Break It 8
Extra Credit 8
Exercise 2: Using Makefiles to Build 10
Using Make 10
What You Should See 11
How to Break It 12
Extra Credit 12
Exercise 3: Formatted Printing 14
What You Should See 15
External Research 15
How to Break It 15
Extra Credit 16
Exercise 4: Using a Debugger 18
GDB Tricks 18
GDB Quick Reference 18
LLDB Quick Reference 19
Exercise 5: Memorizing C Operators 20
How to Memorize 20
The List of Operators 21
Exercise 6: Memorizing C Syntax 26
The Keywords 26
Syntax Structures 27
A Word of Encouragement 30
A Word of Warning 31
Exercise 7: Variables and Types 32
What You Should See 34
How to Break It 34
Extra Credit 34
Exercise 8: If, Else-If, Else 36
What You Should See 37
How to Break It 37
Extra Credit 38
Exercise 9: While-Loop and Boolean Expressions 40
What You Should See 40
How to Break It 41
Extra Credit 41
Exercise 10: Switch Statements 42
What You Should See 43
How to Break It 44
Extra Credit 44
Exercise 11: Arrays and Strings 46
What You Should See 47
How to Break It 48
Extra Credit 48
Exercise 12: Sizes and Arrays 50
What You Should See 51
How to Break It 52
Extra Credit 53
Exercise 13: For-Loops and Arrays of Strings 54
What You Should See 56
Understanding Arrays of Strings 56
How to Break It 57
Extra Credit 57
Exercise 14: Writing and Using Functions 58
What You Should See 59
How to Break It 60
Extra Credit 60
Exercise 15: Pointers, Dreaded Pointers 62
What You Should See 64
Explaining Pointers 65
Practical Pointer Usage 66
The Pointer Lexicon 66
Pointers Arent Arrays 67<...