Learn C the Hard Way
Format
Mixed media product
Språk
Engelska
Antal sidor
384
Utgivningsdatum
2015-09-17
Upplaga
1
Förlag
Addison-Wesley
Medarbetare
Shaw, Zed
Dimensioner
229 x 175 x 23 mm
Vikt
636 g
Antal komponenter
2
Komponenter
Paperback (1), DVD-ROM (1)
ISBN
9780321884923
Learn C the Hard Way

Learn C the Hard Way

Practical Exercises on the Computational Subjects You Keep Avoiding (Like C)

Mixed media product Engelska, 2015-09-17
349
  • Skickas inom 10-15 vardagar.
  • Gratis frakt inom Sverige över 159 kr för privatpersoner.
Finns även som
Visa alla 1 format & utgåvor
You Will Learn C!

Zed Shaw has crafted the perfect course for the beginning C programmer eager to advance their skills in any language. Follow it and you will learn the many skills early and junior programmers need to succeedjust like the hundreds of thousands of programmers Zed has taught to date! You bring discipline, commitment, persistence, and experience with any programming language; the author supplies everything else.

 

In Learn C the Hard Way, youll learn C by working through 52 brilliantly crafted exercises. Watch Zed Shaws teaching video and read the exercise. Type his code precisely. (No copying and pasting!) Fix your mistakes. Watch the programs run. As you do, youll learn what good, modern C programs look like; how to think more effectively about code; and how to find and fix mistakes far more efficiently. Most importantly, youll master rigorous defensive programming techniques, so you can use any language to create software that protects itself from malicious activity and defects.

 

Through practical projects youll apply what you learn to build confidence in your new skills. Shaw teaches the key skills you need to start writing excellent C software, including

 

  • Setting up a C environment
  • Basic syntax and idioms
  • Compilation, make files, and linkers
  • Operators, variables, and data types
  • Program control
  • Arrays and strings
  • Functions, pointers, and structs
  • Memory allocation
  • I/O and files
  • Libraries
  • Data structures, including linked lists, sort, and search
  • Stacks and queues
  • Debugging, defensive coding, and automated testing
  • Fixing stack overflows, illegal memory access, and more
  • Breaking and hacking your own C code
 

Itll Be Hard at First. But Soon, Youll Just Get ItAnd That Will Feel Great!

This tutorial will reward you for every minute you put into it. Soon, youll know one of the worlds most powerful programming languages. Youll be a C programmer.

 

Watch Zed, too! The accompanying DVD contains 5+ hours of passionate, powerful teaching: a complete C video course! If you purchase the digital edition, be sure to read "Where Are the Companion Content Files" at the end of the eBook to learn how to access the videos. 

 
Visa hela texten

Passar bra ihop

  1. Learn C the Hard Way
  2. +
  3. Learn Python 3 the Hard Way

De som köpt den här boken har ofta också köpt Learn Python 3 the Hard Way av Zed A Shaw (häftad).

Köp båda 2 för 592 kr

Kundrecensioner

Fler böcker av Zed A Shaw

Övrig information

Zed 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.

Innehållsförteckning

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<...