summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
authorhuntbyrne <[email protected]>2022-12-06 17:16:27 -0800
committerGitHub <[email protected]>2022-12-06 17:16:27 -0800
commit31acc779c3f518a63645e9044c5824aa12131523 (patch)
treec83d46ef1607add439f48e3e3cc2d387ffb1021b /BlankConsoleLab/BlankConsoleLab.cpp
parentUpdate BlankConsoleLab.cpp (diff)
downloadarchived-cst116-lab3-huntbyrne-31acc779c3f518a63645e9044c5824aa12131523.tar.xz
archived-cst116-lab3-huntbyrne-31acc779c3f518a63645e9044c5824aa12131523.zip
Rename BlankConsoleLab.cpp to CST116Lab3Byrne.cpp
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
deleted file mode 100644
index 92b1f7e..0000000
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
-//
-
-#include <iostream>
-#include <fstream> // For the files!!!!
-#include <iomanip> // For manipulators & formatting options
-using std::cin;
-using std::cout;
-using std::endl;
-using std::setw;
-using std::ios;
-
-using std::ifstream;
-using std::ofstream;
-
-
-int size = 5;
-int arr[50];
-int choice = 0;
-
-
-void filechoice()
-{
- cout << " Which record would you like to open? Small or Large? \n 1 is large, 2 is Small" << endl;
- cin >> choice;
-}
-
-void largetext()
-{
- ifstream inFile;
-
- if (choice = 1) {
- ofstream outFile("C:\\TEMP\\large.txt");
-
- inFile.open("C:\\TEMP\\large.txt");
- }
-
-}
-
-void smalltext()
-{
- ifstream inFile;
-
- if (choice = 2) {
- ofstream outFile("C:\\TEMP\\small.txt");
-
- inFile.open("C:\\TEMP\\small.txt");
- }
-
-}
-
-
-int main()
-{
- filechoice();
- largetext();
- smalltext();
- return 0;
-}