aboutsummaryrefslogtreecommitdiff
path: root/num3/num3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'num3/num3.cpp')
-rw-r--r--num3/num3.cpp9
1 files changed, 4 insertions, 5 deletions
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 <iostream>
#include <fstream>
#include <stdio.h>
@@ -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);