For my project, I need to count how many times the user has inputted the letters in Bacon/. There are six inputs separately. I can't figure out how to stop the program from only letting me enter only one input. I also can't figure out why the counter doesn't work.
I tried to google the answers but nothing makes sense with the code my teacher used.
#include <iostream>
using namespace std;
int main()
{
int sideB = 0;
int sidea = 0;
int sidec = 0;
int sideo = 0;
int siden = 0;
int sideMakin = 0;
int RolltheDice1;
int RolltheDice2;
int RolltheDice3;
int RolltheDice4;
int RolltheDice5;
int RolltheDice6;
cout << "Enter Dice Roll 1: " << endl;
cin >> RolltheDice1;
if (RolltheDice1 == 'B') sideB++;
if (RolltheDice1 == 'a') sidea++;
if (RolltheDice1 == 'c') sidec++;
if (RolltheDice1 == 'o') sideo++;
if (RolltheDice1 == 'n') siden++;
if (RolltheDice1 == '/') sideMakin++;
cout << "Enter Dice Roll 2: " << endl;
cin >> RolltheDice2;
if (RolltheDice2 == 'B') sideB++;
if (RolltheDice2 == 'a') sidea++;
if (RolltheDice2 == 'c') sidec++;
if (RolltheDice2 == 'o') sideo++;
if (RolltheDice2 == 'n') siden++;
if (RolltheDice2 == '/') sideMakin++;
cout << "Enter Dice Roll 3: " << endl;
cin >> RolltheDice3;
if (RolltheDice3 == 'B') sideB++;
if (RolltheDice3 == 'a') sidea++;
if (RolltheDice3 == 'c') sidec++;
if (RolltheDice3 == 'o') sideo++;
if (RolltheDice3 == 'n') siden++;
if (RolltheDice3 == '/') sideMakin++;
cout << "Enter Dice Roll 4: " << endl;
cin >> RolltheDice4;
if (RolltheDice4 == 'B') sideB++;
if (RolltheDice4 == 'a') sidea++;
if (RolltheDice4 == 'c') sidec++;
if (RolltheDice4 == 'o') sideo++;
if (RolltheDice4 == 'n') siden++;
if (RolltheDice4 == '/') sideMakin++;
cout << "Enter Dice Roll 5: " << endl;
cin >> RolltheDice5;
if (RolltheDice5 == 'B') sideB++;
if (RolltheDice5 == 'a') sidea++;
if (RolltheDice5 == 'c') sidec++;
if (RolltheDice5 == 'o') sideo++;
if (RolltheDice5 == 'n') siden++;
if (RolltheDice5 == '/') sideMakin++;
cout << "Enter Dice Roll 6: " << endl;
cin >> RolltheDice6;
if (RolltheDice6 == 'B') sideB++;
if (RolltheDice6 == 'a') sidea++;
if (RolltheDice6 == 'c') sidec++;
if (RolltheDice6 == 'o') sideo++;
if (RolltheDice6 == 'n') siden++;
if (RolltheDice6 == '/') sideMakin++;