I have a string array for example
string name[5]={"A","B","B"}
I am accepting an string input from a user and want to check it against that of the array.
cout<<Enter letter;
cin>>letter;
if(toupper(letter)==name[0])
{
............
...........
}
but i am getting an error