A problem with my poll question

I'm making a poll that has 3 choices and each choice adds 1 vote for that choice but for some reason when I enter a choice and press enter the program stops and wont let the user input any more choices to keep adding to the votes
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
 #include <iostream>
#include <string>
using namespace std;

int main ()
{
    cout << "What do you think of the PS4\n";
    int choice,first,second,third;
    cout << "1. The PS4 will be the best system\n2. Xbox will be the better system\n3. I'll stay with what I have\n";
    cout << "Please choose of the 3 options\n";
    cin >> choice;
    
    while ((choice == '1')||(choice== '2'||choice=='3')) {
    
        if (choice == '1') {
        first=choice;
            first++;
        }
    else
        if (choice == '2'){
        second=choice;
            second++;
        }
    
    else
        
        if (choice == '3'){
        third=choice;
            third++;
        }
    }
}
You don't ask for any choices inside the loop, and since choice is never changes inside the loop, once you get inside you're stuck there forever.
can you put it into code as an example I dont understand what you mean
Topic archived. No new replies allowed.