aboutsummaryrefslogtreecommitdiffstats
path: root/csci4061/091420_breakout
diff options
context:
space:
mode:
Diffstat (limited to 'csci4061/091420_breakout')
-rw-r--r--csci4061/091420_breakout/Makefile16
-rw-r--r--csci4061/091420_breakout/address.c15
-rw-r--r--csci4061/091420_breakout/include/address.h6
-rw-r--r--csci4061/091420_breakout/include/main.h7
-rw-r--r--csci4061/091420_breakout/include/major.h6
-rw-r--r--csci4061/091420_breakout/include/name.h6
-rw-r--r--csci4061/091420_breakout/main.c36
-rw-r--r--csci4061/091420_breakout/major.c15
-rw-r--r--csci4061/091420_breakout/name.c8
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