aman.c++
9/10/2008 10:28:00 AM
On Sep 10, 2:07 pm, raj s <yesr...@gmail.com> wrote:
> How to create a vector consisting map as the element say like this
> vector<map<int,char>>
Assuming you've provided the appropriate #include and namespace in
your program, your current compiler would be complaining about the >>
brackets.
You just need to provide a space between them like so:
vector<map<int,char> >
However if you pick a compiler that is C++0x / TR1 compliant yours
(vector<map<int,char>>) would be valid syntax.
regards,
Aman Angrish.