Category Archives: C Tutorial

Book 16: Take Two and Call Me in the Morning

Previous | Back to Start In the previous chapters, I frequently mentioned how convenient it is to accumulate libraries of useful functions. In the cases I demonstrated, this was easy: we were working with things like arrays, where you just … Continue reading

Posted in C Tutorial | 1 Comment

Book 15: Twiddling Some Bits

Previous | Next The following is a little mathematical, but once you start working with the MacOS commands for creating graphical user interfaces, you will need what you learn here. Don’t worry if you don’t understand everything in here, at … Continue reading

Posted in C Tutorial | 1 Comment

Book 14: Error Messages Demystified

Previous | Next One of the things you’ll be doing the most when programming will invariably be trying to track down coding mistakes the compiler complains about. Here’s a list of some common error messages that LLVM (as included with … Continue reading

Posted in C Tutorial | Leave a comment

Book 13: Getting to Know Your Code

Previous | Next Debugging a program Xcode also comes with a debugger that lets you watch your program execute, live. To use it, simply, open your main.c source file and click in the grey “gutter” at the left of the … Continue reading

Posted in C Tutorial | Leave a comment

Book 12: Names for Things

Previous | Next So far, we’ve learned how to use strings and numbers, and how the computer uses booleans (bool) to represent yes or no as true or false. However, in many cases that is not enough. Often you have … Continue reading

Posted in C Tutorial | Leave a comment

Book 11: Organizing Your Code

Previous | Next I lied to you … well, sort of You may remember that, right in the first chapter, I told you that stdio.h contained functions like printf(). That wasn’t entirely accurate. The thing is, if every application contained … Continue reading

Posted in C Tutorial | 3 Comments

Book 10: Stupid CD Database

Previous | Next Doing the work Now that we have the framework for our database program, let’s fill it with meaning. Instead of the printf()s, we’ll need to actually do some work. Since it would get kind of unreadable if … Continue reading

Posted in C Tutorial | 10 Comments

Book 9: Custom Data Types

Previous | Next Preparing for our second useful program It’s been a while since we did our last useful program, so before y’all doze off, let’s create a little database for our CD collection. I guess you can already see … Continue reading

Posted in C Tutorial | 5 Comments

Book 8: Lists of Stuff

Previous | Next Confused about pointers? Pointers are a topic many people have problems with, so don’t feel bad if you didn’t understand them right away. If you still don’t quite understand how pointers work, you can try to follow … Continue reading

Posted in C Tutorial | 6 Comments

Book 7: Multiple Return Values

Previous | Next We know how to hand several parameters into a function and how to get one value out of them. But it would be kind of boring if we couldn’t get more than one value back from a … Continue reading

Posted in C Tutorial | 9 Comments