Arrays with characters

I want an array that has Boolean values associated with characters. How can I, for example, get thearray['a'] = false without displaying the warning: array subscript has type ‘char? I assume it has something to do with deceleration.
By using a map:
1
2
map<char,bool> theMap;
theMap['a']=false;
Topic archived. No new replies allowed.