diff options
| author | Birducken <[email protected]> | 2022-11-07 22:51:19 -0800 |
|---|---|---|
| committer | Birducken <[email protected]> | 2022-11-07 22:51:19 -0800 |
| commit | 716ebc3a9c87b241e5f36ff151d8513965f785cb (patch) | |
| tree | 1849429fbeab551b3a4ac4a814c89fd8b9a1d85c /CST116-Ch11-Debugging | |
| parent | Added specific file error. (diff) | |
| download | cst116-ch11-debugging-stark-716ebc3a9c87b241e5f36ff151d8513965f785cb.tar.xz cst116-ch11-debugging-stark-716ebc3a9c87b241e5f36ff151d8513965f785cb.zip | |
Finished excersize 2.
Diffstat (limited to 'CST116-Ch11-Debugging')
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 4 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/data.txt | 3 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/report.txt | 3 |
3 files changed, 6 insertions, 4 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index e8e54d8..2a855bf 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -69,8 +69,8 @@ using std::ofstream; const int EMPLOYEES = 20; const int MAX = 21; -const string inPath = "dat.txt"; -const string outPath = "repor.txt"; +const string inPath = "data.txt"; +const string outPath = "report.txt"; int ReadData(ifstream& inFile, ofstream& outFile, char name[][MAX], int age[]); void WriteOutputFile(ofstream& outFile, char name[][MAX], int age[], diff --git a/CST116-Ch11-Debugging/data.txt b/CST116-Ch11-Debugging/data.txt index ac11bda..71ad037 100644 --- a/CST116-Ch11-Debugging/data.txt +++ b/CST116-Ch11-Debugging/data.txt @@ -1,4 +1,5 @@ Gabe 6 Myles 102 Eden 32 -Barry 63
\ No newline at end of file +Barry 63 +Martinet 42
\ No newline at end of file diff --git a/CST116-Ch11-Debugging/report.txt b/CST116-Ch11-Debugging/report.txt index f0ebfd7..6d24d2d 100644 --- a/CST116-Ch11-Debugging/report.txt +++ b/CST116-Ch11-Debugging/report.txt @@ -3,7 +3,8 @@ Gabe 6 Myles 102 Eden 32 Barry 63 +Martinet 42 - ** Total Records: 4 ** + ** Total Records: 5 ** The End |