aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordanHT-OIT <[email protected]>2021-11-23 22:36:03 -0800
committerJordanHT-OIT <[email protected]>2021-11-23 22:36:03 -0800
commit9f6287677b9f73e33982a27d9eae8184d471fee2 (patch)
tree0ecfc26754cef62ae3cf7ca52d1be5ec8e6fa343
parentAdd online IDE url (diff)
downloadcst115-lab8-jordanht-oit-9f6287677b9f73e33982a27d9eae8184d471fee2.tar.xz
cst115-lab8-jordanht-oit-9f6287677b9f73e33982a27d9eae8184d471fee2.zip
Temporary commit
-rw-r--r--CST116F2021-Lab8/CST116F2021-Lab8.cpp17
-rw-r--r--CST116F2021-Lab8/CST116F2021-Lab8.vcxproj3
-rw-r--r--CST116F2021-Lab8/CST116F2021-Lab8.vcxproj.filters5
-rw-r--r--CST116F2021-Lab8/Lab8_Textual_work_Harris-Toovy.txt24
4 files changed, 35 insertions, 14 deletions
diff --git a/CST116F2021-Lab8/CST116F2021-Lab8.cpp b/CST116F2021-Lab8/CST116F2021-Lab8.cpp
index d4a77b8..ece7ad8 100644
--- a/CST116F2021-Lab8/CST116F2021-Lab8.cpp
+++ b/CST116F2021-Lab8/CST116F2021-Lab8.cpp
@@ -1,20 +1,9 @@
-// CST116F2021-Lab8.cpp : This file contains the 'main' function. Program execution begins and ends there.
-//
+//Code by Jordan Harris-Toovy for OIT's CST116 lab 8, November 2021
#include <iostream>
+using namespace std;
int main()
{
- std::cout << "Hello World!\n";
+ //WIP - Do not grade unitl this line is replaced
}
-
-// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
-// Debug program: F5 or Debug > Start Debugging menu
-
-// Tips for Getting Started:
-// 1. Use the Solution Explorer window to add/manage files
-// 2. Use the Team Explorer window to connect to source control
-// 3. Use the Output window to see build output and other messages
-// 4. Use the Error List window to view errors
-// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
-// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
diff --git a/CST116F2021-Lab8/CST116F2021-Lab8.vcxproj b/CST116F2021-Lab8/CST116F2021-Lab8.vcxproj
index 00a34aa..f68c1cb 100644
--- a/CST116F2021-Lab8/CST116F2021-Lab8.vcxproj
+++ b/CST116F2021-Lab8/CST116F2021-Lab8.vcxproj
@@ -141,6 +141,9 @@
<ItemGroup>
<ClCompile Include="CST116F2021-Lab8.cpp" />
</ItemGroup>
+ <ItemGroup>
+ <Text Include="Lab8_Textual_work_Harris-Toovy.txt" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/CST116F2021-Lab8/CST116F2021-Lab8.vcxproj.filters b/CST116F2021-Lab8/CST116F2021-Lab8.vcxproj.filters
index b0158d2..d89281e 100644
--- a/CST116F2021-Lab8/CST116F2021-Lab8.vcxproj.filters
+++ b/CST116F2021-Lab8/CST116F2021-Lab8.vcxproj.filters
@@ -19,4 +19,9 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="Lab8_Textual_work_Harris-Toovy.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ </ItemGroup>
</Project> \ No newline at end of file
diff --git a/CST116F2021-Lab8/Lab8_Textual_work_Harris-Toovy.txt b/CST116F2021-Lab8/Lab8_Textual_work_Harris-Toovy.txt
new file mode 100644
index 0000000..d173b1f
--- /dev/null
+++ b/CST116F2021-Lab8/Lab8_Textual_work_Harris-Toovy.txt
@@ -0,0 +1,24 @@
+13a - CH11.7 Exercises:
+
+#5:
+if(!testFile.fail) //Part a
+{
+ testFile >> lname[0] >> id[0] >> age[0]; //Part b
+ cout << lname[0] << " " << id[0] << " " << age[0] << " " << endl;
+
+ while(!testFile.eof())
+ {
+ index++;
+ testFile >> lname[index] >> id[index] >> age[index];
+ cout << lname[index] << " " << id[index] << " " << age[index] << " " << endl;
+ }
+
+ testFile.close(); //Part c
+}
+
+#6:
+a) False: RAM is much faster; RAM is faster than everything else except for the CPU's cache and registers
+b) True: Who knows what strange files people will feed into your program.
+c) True: Since you've read in the data, and know what you've modified, why would you need to read it again? (Unless its realy big)
+d) True: Unless you don't need to know how much you've read for some reason. There are workarounds if you forget.
+e) True: The OS will put an EOF in the file if there is not one already. \ No newline at end of file