this is the draft syntax
using namespace std;
int main ()
cout << "THIS IS A SIMPLE POLL" <<endl;
cout << "NAME:" <<endl;
cout << "AGE:" <<endl;
cout << "Do you drink milk at breakfast? Y/N " <<endl;
cout << "Do you eat cereals on your breakfast? Y/N " <<endl;
cout << "Do you take bananas on your breakfast? Y/N " <<endl;
cout << "Total number of persons who drink milk at their breakfast: "<<p1<<endl;
cout << "Total number of persons who eat cereals on their breakfast: "<<p2<<endl;
cout << "Total number of persons who take bananas on their breakfast: "<<p3<endl;
1st of all i got another pending thread.. sorry for multi threading as i dont want to mix stuffs in one thread :) anyways,
i know that in my draft syntax to make a poll it should go that way..
but its only a draft anyways :)
so what my issue is..
for example i need like 5 persons to answer a poll
and on lines 15,18 and 21 they will answer only with Y/N and what do i want to happen is at line 24,25 and 26 i want to see how many people answered Y or N and also..
how can i make the lines 9,12,15,18 and 21 repeat it self (cuz its time for the 2nd person to take the poll) without actually retyping all of them (or copy and paste)
do i need to set an integer/variable value to Y/N so that it displays the number of persons who says either Y/N and if so..