Introduction to Programming
Setup
How to set up a new machine or your home machine so you can program.
For Windows
For Mac
Glossary
Ever wonder what that word means you keep hearing?
Or what that weird symbol in my code means?
Or which kind of brackets to use in a certain situation?
Everything shall be explained within!
If there's something you don't see in the list, let me know and I'll add it.
Glossary
Linux Command Line
Learning to use a command line interface
Command Line Cheat Sheet
Hello World
Your very first program!
Example command line session
Hello World
Hello World with Explanations!
Some Simple Examples
Try typing these in and see what they do. Then change them!!
Variables and Expressions
if ... then
Loops
Arguments
The Guessing Game Challenge
Can you take pieces from different programs
to make one big program that does something cool?
Puzzle
Some Cool Examples
Try these out, and let them inspire you to do something new and cool. Try to come up with your
own ideas and write completely new programs!
Colors
Adventure
Some Explanations
Now that you've typed in a bunch of programming examples, and even learned how to piece together parts of different programs, it's time to learn how this stuff works. I'll bet you've figured most of this out already. From now on, I won't be giving you complete programs to type in any more. You should be so familiar with the template of a simple program, you should be able to add new code to it when and where you need to.
Variables
printf
Loops
Arrays
Strings
Functions
Comments
Makefiles
Your First Project!
Now it's time to try creating something of your own. You get to decide what you make,
and design it yourself. To get you started, here are some ideas:
Projects
Example Projects
Here are some example projects I created to help you with ideas and give you
some more code to look at to help you get started.
Don't copy the program and call it your project!
Use this code to help you get ideas or to figure out how to accomplish specific
things in your own project.
Look out! You need special gcc command lines to get these to work! So look at the top of each page to figure out how to run gcc for these guys.
Stars
Bounce
Bounce v2.0
Speed Letters
Avoid!
The MAK Library
Here's a library I made myself that should help you get started using graphics.
You should only attempt this once you successfully complete a project like those above.
Getting Started
Reference