aboutsummaryrefslogtreecommitdiffstats
path: root/OLD/csci4061/091420_breakout
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-05-24 11:18:46 -0500
committerMatt Strapp <matt@mattstrapp.net>2022-05-24 11:19:55 -0500
commit7a73162607544204032aa66cce755daf21edebda (patch)
tree58578e01f15f34a855d99c32898db9d7a1603e67 /OLD/csci4061/091420_breakout
parentdo some stuff (diff)
downloadhomework-7a73162607544204032aa66cce755daf21edebda.tar
homework-7a73162607544204032aa66cce755daf21edebda.tar.gz
homework-7a73162607544204032aa66cce755daf21edebda.tar.bz2
homework-7a73162607544204032aa66cce755daf21edebda.tar.lz
homework-7a73162607544204032aa66cce755daf21edebda.tar.xz
homework-7a73162607544204032aa66cce755daf21edebda.tar.zst
homework-7a73162607544204032aa66cce755daf21edebda.zip
Graduate
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'OLD/csci4061/091420_breakout')
-rw-r--r--OLD/csci4061/091420_breakout/Makefile16
-rw-r--r--OLD/csci4061/091420_breakout/address.c15
-rw-r--r--OLD/csci4061/091420_breakout/include/address.h6
-rw-r--r--OLD/csci4061/091420_breakout/include/main.h7
-rw-r--r--OLD/csci4061/091420_breakout/include/major.h6
-rw-r--r--OLD/csci4061/091420_breakout/include/name.h6
-rw-r--r--OLD/csci4061/091420_breakout/main.c36
-rw-r--r--OLD/csci4061/091420_breakout/major.c15
-rw-r--r--OLD/csci4061/091420_breakout/name.c8
9 files changed, 0 insertions, 115 deletions
diff --git a/OLD/csci4061/091420_breakout/Makefile b/OLD/csci4061/091420_breakout/Makefile
deleted file mode 100644
index 1e807a9..0000000
--- a/OLD/csci4061/091420_breakout/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-CC=gcc
-CFLAGS=-I./include
-OBJ=main.o name.o address.o major.o
-EXE=w2.out
-
-all: $(EXE)
-
-$(EXE): $(OBJ)
- $(CC) -o $@ $^ $(CFLAGS)
-
-%.o: %.c
- $(CC) -c -o $@ $< $(CFLAGS)
-clean:
- rm *.o $(EXE)
-run:
- ./$(EXE) \ No newline at end of file
diff --git a/OLD/csci4061/091420_breakout/address.c b/OLD/csci4061/091420_breakout/address.c
deleted file mode 100644
index 3f36f70..0000000
--- a/OLD/csci4061/091420_breakout/address.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "include/main.h"
-#include "include/address.h"
-
-/*
- * Write getAddress function
- * void getAddress(char * address);
- * Prints a prompt "Enter your address: " to get an address,
- * Reads in the user's address
- */
-
-void getAddress(char * address) {
- printf("Enter your address: ");
- fgets(address, maxLen, stdin);
- fflush(stdin);
-} \ No newline at end of file
diff --git a/OLD/csci4061/091420_breakout/include/address.h b/OLD/csci4061/091420_breakout/include/address.h
deleted file mode 100644
index 97a4c03..0000000
--- a/OLD/csci4061/091420_breakout/include/address.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef INC_091420_BREAKOUT_ADDRESS_H
-#define INC_091420_BREAKOUT_ADDRESS_H
-
-void getAddress(char * address);
-
-#endif //INC_091420_BREAKOUT_ADDRESS_H
diff --git a/OLD/csci4061/091420_breakout/include/main.h b/OLD/csci4061/091420_breakout/include/main.h
deleted file mode 100644
index 6f7f6fe..0000000
--- a/OLD/csci4061/091420_breakout/include/main.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef INC_091420_BREAKOUT_MAIN_H
-#define INC_091420_BREAKOUT_MAIN_H
-
-#include <stdio.h>
-static const int maxLen = 100;
-
-#endif //INC_091420_BREAKOUT_MAIN_H
diff --git a/OLD/csci4061/091420_breakout/include/major.h b/OLD/csci4061/091420_breakout/include/major.h
deleted file mode 100644
index e649ea6..0000000
--- a/OLD/csci4061/091420_breakout/include/major.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef INC_091420_BREAKOUT_MAJOR_H
-#define INC_091420_BREAKOUT_MAJOR_H
-
-void getMajor(char * major);
-
-#endif //INC_091420_BREAKOUT_MAJOR_H
diff --git a/OLD/csci4061/091420_breakout/include/name.h b/OLD/csci4061/091420_breakout/include/name.h
deleted file mode 100644
index 2bb96aa..0000000
--- a/OLD/csci4061/091420_breakout/include/name.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef INC_091420_BREAKOUT_NAME_H
-#define INC_091420_BREAKOUT_NAME_H
-
-void getName(char * name);
-
-#endif //INC_091420_BREAKOUT_NAME_H
diff --git a/OLD/csci4061/091420_breakout/main.c b/OLD/csci4061/091420_breakout/main.c
deleted file mode 100644
index aeb989e..0000000
--- a/OLD/csci4061/091420_breakout/main.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Recitation section number:
- * Breakout Group Number:
- * Member name (email address):
- * Member name (email address):
- * Member name (email address):
- * Member name (email address):
- * Member name (email address):
- * Member name (email address):
- * Member name (email address):
- */
-
-#include "include/main.h"
-#include "include/name.h"
-#include "include/address.h"
-#include "include/major.h"
-
-int main() {
-
- char name[maxLen];
- char address[maxLen];
- char major[maxLen];
-
- printf("Hi there! \nTell me more about you.\n");
- getName(name);
- getAddress(address);
- getMajor(major);
-
- printf("Thanks for your information!\n");
- printf("Your name: %s", name);
- printf("Your address: %s", address);
- printf("Your major: %s", major);
- printf("Bye!\n");
-
- return 0;
-} \ No newline at end of file
diff --git a/OLD/csci4061/091420_breakout/major.c b/OLD/csci4061/091420_breakout/major.c
deleted file mode 100644
index cfc9cef..0000000
--- a/OLD/csci4061/091420_breakout/major.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "include/main.h"
-#include "include/major.h"
-
-/*
- * Write getMajor function
- * void getMajor(char * major);
- * Prints a prompt "Enter your major: " to get an major,
- * Reads in the user's major
- */
-
-void getMajor(char * major) {
- printf("Enter your major: ");
- fgets(major, maxLen, stdin);
- fflush(stdin);
-} \ No newline at end of file
diff --git a/OLD/csci4061/091420_breakout/name.c b/OLD/csci4061/091420_breakout/name.c
deleted file mode 100644
index 97c2a9d..0000000
--- a/OLD/csci4061/091420_breakout/name.c
+++ /dev/null
@@ -1,8 +0,0 @@
-#include "include/main.h"
-#include "include/name.h"
-
-void getName(char * name) {
- printf("Enter your name: ");
- fgets(name, maxLen, stdin);
- fflush(stdin);
-} \ No newline at end of file