diff options
| author | tafaar <[email protected]> | 2022-11-01 14:34:13 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-01 14:34:13 -0700 |
| commit | c3835623a15e5ad30fca9348667dbcb3f29acc06 (patch) | |
| tree | 54a152d847f910f27368358072294c96104e45e6 | |
| parent | added flowchart, finished (diff) | |
| download | cst116-ch11-debugging-hill-c3835623a15e5ad30fca9348667dbcb3f29acc06.tar.xz cst116-ch11-debugging-hill-c3835623a15e5ad30fca9348667dbcb3f29acc06.zip | |
Update CST116-Ch11-Debugging.cpp
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index ea8b1ae..8eefc76 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -160,7 +160,7 @@ int ReadData(ifstream& inFile, ofstream& outFile, char name[][MAX], int age[]) void WriteOutputFile(ofstream& outFile, char name[][MAX], int age[], int counter) { outFile << " Here is the Output File" << endl; - for (int r = 0; r <= counter; r++) + for (int r = 0; r < counter; r++) { outFile << setiosflags(ios::left) << setw(25) << name[r] << setw(4) |