summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch11-Debugging')
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt23
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark.cpp4
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj1
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters1
4 files changed, 29 insertions, 0 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt
new file mode 100644
index 0000000..a64e192
--- /dev/null
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt
@@ -0,0 +1,23 @@
+Trenton Stark
+CST 116
+Psuedo Code:
+
+open report.txt in the same directory as the program
+open data.txt in the same directory as the program
+
+if input file can't be opened print error and exit
+
+for each line in input file:
+ put name into character matrix at row line - 1
+ put age into int array at index line - 1
+ print name and age that was just read
+
+at end of file put number of row inputted into record_counter
+close input file
+
+if output file can't be opened print error and exit
+for recorder_counter times in name[] and age[]:
+ output name[i] and age[i] to same line in output file
+
+output summary with number of lines read to console and ouput file
+close output file \ No newline at end of file
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark.cpp
index 2a855bf..d77da6b 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark.cpp
@@ -1,3 +1,7 @@
+//Trenton Stark
+//CST 116
+//Chapter 11 Debugging
+
/********************************************************************
* File: Chapter 11 Debug.cpp
*
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
index 45366aa..e497115 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
@@ -133,6 +133,7 @@
<Text Include="data.txt" />
<Text Include="report.txt" />
<Text Include="CST116-Ch11-Debugging-Stark.txt" />
+ <Text Include="CST116-Ch11-Debugging-Stark-Psuedo-Code.txt" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
index a983ca7..0e17f24 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
@@ -23,5 +23,6 @@
<Text Include="data.txt" />
<Text Include="report.txt" />
<Text Include="CST116-Ch11-Debugging-Stark.txt" />
+ <Text Include="CST116-Ch11-Debugging-Stark-Psuedo-Code.txt" />
</ItemGroup>
</Project> \ No newline at end of file