Compare commits

..

No commits in common. "c8ac7ac727b648652e4d0151bbf0dfc534c7e49b" and "0fd7b5873dbc20f5e201c3dd9225cf9d51b3d72d" have entirely different histories.

7 changed files with 17 additions and 23 deletions

View File

@ -1,10 +0,0 @@
CFLAGS ?= -Wall -g
all: ex1 ex3
clean:
rm -f ex1 ex3
test:
./ex1
./ex3

View File

@ -1,2 +1 @@
ex1
ex3

1
lcthw/ex2/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
ex1

4
lcthw/ex2/Makefile Normal file
View File

@ -0,0 +1,4 @@
CFLAGS=-Wall -g
clean:
rm -f ex1

12
lcthw/ex2/ex1.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;
}

View File

@ -1,12 +0,0 @@
#include <stdio.h>
int main(int argc, char *argv[])
{
int age = 10;
int height = 72;
printf("I am %d years old.\n", age);
printf("I am %d inches tall.\n", height);
return 0;
}