Hey guys,

I am working on some software and I have ran into an issue which I cannot seem to get past. This is probably easy for most of you, but I am rather new to c++ and could use some help. Basically what I need to do is read a bunch of numbers from a text file ranging from 0-60 and then break them into three groups (0-20, 21-40, 41-60). Then from there I need to find how many numbers were in each group. So if my text file holds the following numbers: 3, 19, 28, 17, 35, 36, 58, 4, 26, 28, 5, 60, 48.......then I would need the program to read those numbers, store them into an array, and then count how many numbers fall into each category. So based on the those numbers the output should be something like:

There are 5 numbers in group 1 (0-20).

There are 5 numbers in group 2 (21-40).

There are 3 numbers in group 3 (41-60).

Like I said it is probably very easy, but I cannot seem to figure out how to get it done. Any help would be much appreciated. Thanks guys.