diff options
| author | JordanHT-OIT <[email protected]> | 2021-12-08 21:07:19 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-08 21:07:19 -0800 |
| commit | b42d736c7bd9b363a53688ad789d099d1b0fad59 (patch) | |
| tree | fc0bfe8794bcf91af4a12af5f6253e9e055a5b20 | |
| parent | Merge due to version control issue (diff) | |
| download | cst116-lab9-jordanht-oit-b42d736c7bd9b363a53688ad789d099d1b0fad59.tar.xz cst116-lab9-jordanht-oit-b42d736c7bd9b363a53688ad789d099d1b0fad59.zip | |
Expanded the comment for the mapping function
| -rw-r--r-- | CST116F2021-Lab9/CST116F2021-Lab9.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116F2021-Lab9/CST116F2021-Lab9.cpp b/CST116F2021-Lab9/CST116F2021-Lab9.cpp index 22d608b..f702601 100644 --- a/CST116F2021-Lab9/CST116F2021-Lab9.cpp +++ b/CST116F2021-Lab9/CST116F2021-Lab9.cpp @@ -372,7 +372,7 @@ void swapDataArray(string dataArray[4][MV_3], int meta[MV_3], int &entries) } } -//Fills a metadata array with relevant data +//Fills a metadata array with position data and ASCII values of the first char (made upercase) of the last names void populateMetaData(int meta[2][MV_3], string dataAray[4][MV_3], int entries) { for (int idx = 0; idx <= entries; idx++) @@ -382,7 +382,7 @@ void populateMetaData(int meta[2][MV_3], string dataAray[4][MV_3], int entries) } } -//Opens a file at the provied path, the enters its contents into an array. Returns false if there is an I/O error. +//Opens a file at the provied path, the enters its contents into an array. Returns false if there is an I/O error bool populateDataArray(string fileLoc, string dataArray[4][MV_3], int& numEntries) { ifstream inputFile; |