Compare commits
2 Commits
0fd7b5873d
...
c8ac7ac727
Author | SHA1 | Date | |
---|---|---|---|
c8ac7ac727 | |||
a135c338ea |
1
lcthw/ex1/.gitignore → lcthw/.gitignore
vendored
1
lcthw/ex1/.gitignore → lcthw/.gitignore
vendored
@ -1 +1,2 @@
|
||||
ex1
|
||||
ex3
|
10
lcthw/Makefile
Normal file
10
lcthw/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
CFLAGS ?= -Wall -g
|
||||
|
||||
all: ex1 ex3
|
||||
|
||||
clean:
|
||||
rm -f ex1 ex3
|
||||
|
||||
test:
|
||||
./ex1
|
||||
./ex3
|
1
lcthw/ex2/.gitignore
vendored
1
lcthw/ex2/.gitignore
vendored
@ -1 +0,0 @@
|
||||
ex1
|
@ -1,4 +0,0 @@
|
||||
CFLAGS=-Wall -g
|
||||
|
||||
clean:
|
||||
rm -f ex1
|
@ -1,12 +0,0 @@
|
||||
#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;
|
||||
}
|
12
lcthw/ex3.c
Normal file
12
lcthw/ex3.c
Normal file
@ -0,0 +1,12 @@
|
||||
#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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user