Compare commits
No commits in common. "726566bb23ca1de4fe877f593bf67e1f45653f28" and "af95125894252547adaa22a748f0e142d40e4630" have entirely different histories.
726566bb23
...
af95125894
1
lcthw/.gitignore
vendored
1
lcthw/.gitignore
vendored
@ -2,4 +2,3 @@ ex1
|
|||||||
ex3
|
ex3
|
||||||
ex7
|
ex7
|
||||||
ex8
|
ex8
|
||||||
ex9
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
CFLAGS ?= -Wall -g
|
CFLAGS ?= -Wall -g
|
||||||
GDBRUN = gdb --batch --ex run --ex bt --ex q --args
|
GDBRUN = gdb --batch --ex run --ex bt --ex q --args
|
||||||
BUILD_TARGETS = ex1 ex3 ex7 ex8 ex9
|
BUILD_TARGETS = ex1 ex3 ex7 ex8
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: build test
|
all: build test
|
||||||
|
@ -5,7 +5,7 @@ int main(int argc, char* argv[])
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
printf("You have no argument.\n");
|
printf("You no argument.\n");
|
||||||
} else if (argc > 1 && argc < 4) {
|
} else if (argc > 1 && argc < 4) {
|
||||||
printf("Here's your arguments:\n");
|
printf("Here's your arguments:\n");
|
||||||
|
|
||||||
|
15
lcthw/ex9.c
15
lcthw/ex9.c
@ -1,15 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int i = 0;
|
|
||||||
while (i < 25) {
|
|
||||||
printf("%d", i);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
// need this to add a final newline
|
|
||||||
printf("\n");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user