done up to chapter 8

This commit is contained in:
Dan Buch 2011-09-04 22:33:10 -04:00
parent 357323bdc8
commit 6a0e1ba5e6
3 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
ex1 ex1
ex3 ex3
ex4 ex4
ex5

View File

@ -1,6 +1,6 @@
CFLAGS=-Wall -g CFLAGS=-Wall -g
EXERCISES = ex1 ex3 ex4 EXERCISES = ex1 ex3 ex4 ex5
all: $(EXERCISES) all: $(EXERCISES)

12
ex5.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
/* This is a comment. */
int main(int argc, char *argv[])
{
int distance = 100;
// this is also a comment
printf("You are %d miles away.\n", distance);
return 0;
}