Won't allow me to return to menu

It just continually says to put in a new number. How do I fix?

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
 void add_values ()
{
    cout << "Please input the a number between 1 and 10 and after input numbers between 999 to -999." << endl;

    int counter;

    cin >> counter;

    for(int i=0; i< counter; i++)
    {
        cout << "i=" <<i << endl; /**test to see if I am here*/
        while ((user_num[i] > -999) || (user_num[i] < 999))
        {
            cin >> user_num[i];

    cout << "user_num=" << user_num[i] << endl;/**test to see if I am here*/

            if((user_num[i] < -999) || (user_num[1] > 999))
            {
                cout << "\a\a\a\a\a" << "Enter a correct option." << endl;
                continue;
            }

            cout << 1 << endl;/**test to see if I am here*/
        }
    }
    /** a for statement allowing for you to choose how many numbers you put in
    a while statement stating what the range is
    a if statement checking and stopping errors*/

    return display_menu();
}
The condition at line 12 is always true. Every number is greater than -999 or less than 999. Many numbers are both.
so there should be an && instead of or?
though the && makes it skip i=0 and go straight to i=1
Topic archived. No new replies allowed.