pa try nito ts,
[CODE lang="cpp" title="Test" highlight="6,7,8,9,10"]#include <iostream>
#include <map>
using namespace std;
int main(void)
{
map<string, int> choice_map;
choice_map.insert({"1A", 1});
choice_map.insert({"2", 2});
choice_map.insert({"3", 3});
choice_map.insert({"4", 4});
string choice = "1A";
switch(choice_map[choice]) {
case 1:
cout<<"1\n";
break;
case 2:
cout<<"2\n";
break;
case 3:
cout<<"3\n";
break;
case 4:
cout<<"4\n";
break;
}
}[/CODE]