Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS305_FINAL commit #139

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CC = gcc
CFLAGS = -Wall -Wextra

all: main.out

main.out: main
./main | tee main.out

main: main.o get_student_id.o
$(CC) -o main main.o get_student_id.o

main.o: main.c
$(CC) $(CFLAGS) -c main.c

get_student_id.o: get_student_id.c
$(CC) $(CFLAGS) -c get_student_id.c

clean:
rm -f main main.out *.o

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CS305_FINAL
Contributors:
Tayyaba Shaheen
ADD YOUR NAME HERE
James Sears
2 changes: 1 addition & 1 deletion get_student_id.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
int get_student_id(void){
return 3331212;
return 5808364;
}
Binary file added get_student_id.o
Binary file not shown.
Binary file added main
Binary file not shown.
Binary file added main.o
Binary file not shown.
1 change: 1 addition & 0 deletions main.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Student ID: 5808364