diff options
| author | huntbyrne <[email protected]> | 2022-12-06 17:16:27 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-06 17:16:27 -0800 |
| commit | 31acc779c3f518a63645e9044c5824aa12131523 (patch) | |
| tree | c83d46ef1607add439f48e3e3cc2d387ffb1021b /BlankConsoleLab/BlankConsoleLab.cpp | |
| parent | Update BlankConsoleLab.cpp (diff) | |
| download | archived-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.cpp | 59 |
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; -} |