From 5c2fdc0add9db89799eab043ede16d2be20f4d25 Mon Sep 17 00:00:00 2001 From: tylr Date: Mon, 6 Dec 2021 12:38:44 -0800 Subject: Num 4 in progress. --- num3/num3.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'num3/num3.cpp') diff --git a/num3/num3.cpp b/num3/num3.cpp index d3ea934..16ac4a4 100644 --- a/num3/num3.cpp +++ b/num3/num3.cpp @@ -3,7 +3,6 @@ //Dec 3, 2021 - #include #include #include @@ -31,9 +30,9 @@ int main() int record_counter = 0; //arrays - std::string data[MAX]; - int length_arr[MAX]; - int charCount_arr[MAX]; + std::string data[MAX]; //holds strings. + int length_arr[MAX]; //keeps track of full length of strings. Counts characters including spaces. + int charCount_arr[MAX]; // //display the file choices @@ -69,7 +68,7 @@ int main() flag = 0; } - //Builds arrays. See functions below for descriptions. + //Build arrays. See functions below for descriptions. FindLength(data, length_arr); CharCount(data, length_arr, charCount_arr); -- cgit v1.2.3