From b42d736c7bd9b363a53688ad789d099d1b0fad59 Mon Sep 17 00:00:00 2001 From: JordanHT-OIT <91796546+JordanHT-OIT@users.noreply.github.com> Date: Wed, 8 Dec 2021 21:07:19 -0800 Subject: Updated comments for clarity Expanded the comment for the mapping function --- CST116F2021-Lab9/CST116F2021-Lab9.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CST116F2021-Lab9/CST116F2021-Lab9.cpp') 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; -- cgit v1.2.3