From e4fbc829e8a4d7c016cdc4b5da9c0ed6c5d7a62b Mon Sep 17 00:00:00 2001 From: ear465 Date: Fri, 5 May 2023 17:23:45 -0700 Subject: [PATCH] adds requested files for the cs305 final exam --- Makefile | 13 +++++++++++++ README | 2 +- get_student_id.c | 2 +- main.out | 1 + 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 main.out diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..70a80d6 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +CC= gcc + +main.out: main + ./main | tee main.out + +main: main.o get_student_id.o + $(CC) main.o get_student_id.o -o main + +main.o: main.c + $(CC) -c main.c + +get_student_id.o: get_student_id.c + $(CC) -c get_student_id.c diff --git a/README b/README index 74ddb0e..256f821 100644 --- a/README +++ b/README @@ -1,3 +1,3 @@ Contributors: Toby Dylan Hocking -ADD YOUR NAME HERE \ No newline at end of file +Ezekiel "Zeke" Anton Rigler diff --git a/get_student_id.c b/get_student_id.c index 8ffa600..26b2bff 100644 --- a/get_student_id.c +++ b/get_student_id.c @@ -1,3 +1,3 @@ int get_student_id(void){ - return 3331212; + return 6206108; } diff --git a/main.out b/main.out new file mode 100644 index 0000000..1248349 --- /dev/null +++ b/main.out @@ -0,0 +1 @@ +Student ID: 6206108