Okay, so I would have to do something like this?
Code:
...
while((exit_option == 'Y')||(exit_option == 'y'))
{
if((decision == 'Y')||(decision == 'y'))
{
place = 0;
power = 1;
cout << "\n\nPlease enter your binary number:\n\n";
cin >> entry[0];
while (entry[place] != '\n')
{
place ++;
cin >> noskipws >> entry[place];
[[ERROR CHECK HERE]]
}
for(digit = place-1; digit >= 0; digit --)
{
decimal += (entry[digit] - '0')*power;
power *= 2;
}
entry[place] = '\0';
cout << "\n\n" << entry << " in binary is " << decimal << " in decimal.\n\n";
cout << "Continue? (Y or y): ";
cin >> exit_option;
cin.ignore();
}
else
{
cout << "Thanks anyway!";
exit_option = 'n';
}
}
...