diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2021-01-17 12:57:21 -0600 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2021-01-17 12:57:21 -0600 |
commit | dde37c31a72f4773e95faf8223ef450440bdb62c (patch) | |
tree | e238837d1d2f364b95483f6281960f9483078c1a /csci4061/091420_breakout | |
parent | IDK (diff) | |
download | homework-dde37c31a72f4773e95faf8223ef450440bdb62c.tar homework-dde37c31a72f4773e95faf8223ef450440bdb62c.tar.gz homework-dde37c31a72f4773e95faf8223ef450440bdb62c.tar.bz2 homework-dde37c31a72f4773e95faf8223ef450440bdb62c.tar.lz homework-dde37c31a72f4773e95faf8223ef450440bdb62c.tar.xz homework-dde37c31a72f4773e95faf8223ef450440bdb62c.tar.zst homework-dde37c31a72f4773e95faf8223ef450440bdb62c.zip |
get rid of that trash
Diffstat (limited to 'csci4061/091420_breakout')
-rw-r--r-- | csci4061/091420_breakout/Makefile | 16 | ||||
-rw-r--r-- | csci4061/091420_breakout/address.c | 15 | ||||
-rw-r--r-- | csci4061/091420_breakout/include/address.h | 6 | ||||
-rw-r--r-- | csci4061/091420_breakout/include/main.h | 7 | ||||
-rw-r--r-- | csci4061/091420_breakout/include/major.h | 6 | ||||
-rw-r--r-- | csci4061/091420_breakout/include/name.h | 6 | ||||
-rw-r--r-- | csci4061/091420_breakout/main.c | 36 | ||||
-rw-r--r-- | csci4061/091420_breakout/major.c | 15 | ||||
-rw-r--r-- | csci4061/091420_breakout/name.c | 8 |
9 files changed, 0 insertions, 115 deletions
diff --git a/csci4061/091420_breakout/Makefile b/csci4061/091420_breakout/Makefile deleted file mode 100644 index 1e807a9..0000000 --- a/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/csci4061/091420_breakout/address.c b/csci4061/091420_breakout/address.c deleted file mode 100644 index 3f36f70..0000000 --- a/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/csci4061/091420_breakout/include/address.h b/csci4061/091420_breakout/include/address.h deleted file mode 100644 index 97a4c03..0000000 --- a/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/csci4061/091420_breakout/include/main.h b/csci4061/091420_breakout/include/main.h deleted file mode 100644 index 6f7f6fe..0000000 --- a/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/csci4061/091420_breakout/include/major.h b/csci4061/091420_breakout/include/major.h deleted file mode 100644 index e649ea6..0000000 --- a/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/csci4061/091420_breakout/include/name.h b/csci4061/091420_breakout/include/name.h deleted file mode 100644 index 2bb96aa..0000000 --- a/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/csci4061/091420_breakout/main.c b/csci4061/091420_breakout/main.c deleted file mode 100644 index aeb989e..0000000 --- a/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/csci4061/091420_breakout/major.c b/csci4061/091420_breakout/major.c deleted file mode 100644 index cfc9cef..0000000 --- a/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/csci4061/091420_breakout/name.c b/csci4061/091420_breakout/name.c deleted file mode 100644 index 97c2a9d..0000000 --- a/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 |