Back to having fun with LCTHW
This commit is contained in:
parent
58002830a8
commit
e28293e5bd
1
lcthw/.envrc
Normal file
1
lcthw/.envrc
Normal file
@ -0,0 +1 @@
|
||||
export CFLAGS='-Werror -g'
|
1
lcthw/ex1/.gitignore
vendored
Normal file
1
lcthw/ex1/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
ex1
|
12
lcthw/ex1/ex1.c
Normal file
12
lcthw/ex1/ex1.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user