Assigning numbers to different processes? Don't know how to describe.

I want a number to be assigned for each process or input. I think the code I have gives an illusion that it's doing that, but I don't think it is. So for this code, I want an entry1, and entry2, etc each time an entry is inputted.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <iostream>

using namespace std;

int countLow = 0, countHigh = 0;

bool process( int entry ) {

            do { cout << "\n\nEnter number: ";
            if ( cin >> entry ) {
                if ( entry >= 1 && entry <= 100 && countLow < 5 ) {
                    cout << "Entry " << countLow + 1 << " for the low range has been filled.";
                    countLow++;
                    if ( countLow == 5 ) {
                        cout << "\nLow limit reached.";
                    }
            }
            else if ( entry >= 901 && entry <= 1000 && countHigh < 5 ) {
                cout << "Entry " << countHigh + 1 << " for the high range has been filled.";
                countHigh++;
                if ( countHigh == 5 ) {
                    cout << "\nHigh limit reached.";
                }
            }
            else
                cout << "Invalid number.";
        }
        else
            cout << "Invalid input.\n";
            cin.clear();
            string temp;
            getline(cin, temp);
        } while ( countLow != 5 || countHigh != 5 );
}

int main() {
    cout << "Please begin entering a series of numbers." << endl <<
    "\nYou must have 2 sets of 5 numbers." << endl <<
    "\n5 should be within the range of 1 and 100." << endl <<
    "\nThe other set should be within the range of 901 and 1000" << endl;

    double entry;
    do {
        process (entry);
        break;
    } while ( countLow == 5 && countHigh == 5 );

    cout << "\n\nGame starting!";


}


I'm super sorry for posting the whole thing, but I don't know how to trim it.
I think what you are trying to create is called an array.

http://www.cplusplus.com/doc/tutorial/arrays/

Thanks; I'd already figured it out, using arrays, using that tutorial already!
Topic archived. No new replies allowed.