I'm fairly new to c++ and programming in general. I want to be able to test for the origLetter char. However, it could be 'a' or 'A'. When I attempt to execute my program it throws back an error. "Error: duplicate case values". I want to include both of the case values. How do I get around this?
using namespace std;
int main() {
char origLetter;
cin >> origLetter;
switch (origLetter) {
case 'A'||'a':
cout << "Alpha" << endl;
break;
case 'b'||'B':
cout << "Beta" << endl;
break;
default:
cout << "Unknown" << endl;
break;
}