Neither C # nor C ++ supports the creation of such a data structure using inline arrays , however you can create List<Tuple<char,int>>in C # or std::vector<std::pair<char,int>>C ++.
You can also consider using collections Dictionary<>or std::map<>, if one of the elements can be considered a unique key, and the order of the elements is irrelevant, but only their association.
In the case of lists (not dictionaries) in C #, you should write:
List<Tuple<char,int>> items = new List<Tuple<char,int>>();
items.Add( new Tuple<char,int>('a', 1) );
items.Add( new Tuple<char,int>('b', 2) );
items.Add( new Tuple<char,int>('c', 3) );
and in C ++ you should write:
std::vector<std::pair<char,int>> items;
items.push_back( std::pair<char,int>( 'a', 1 ) );
items.push_back( std::pair<char,int>( 'b', 2 ) );
items.push_back( std::pair<char,int>( 'c', 3 ) );