u can declare it without an initial size

typedef map<float,int> mmap;

u can then insert values using cin within a for loop

for(i=0;i<5;i++)
{
  cin>>mmap[i];
}

c if this works

regards

anusha


On Aug 24, 8:46 pm, mohit verma <[email protected]> wrote:
> hey guys ,
> i want to store 3 values in stl map  making float as key value.
> I am doing something like this -
>   typedef const int twoint[2];
>   map<float,twoint> mmap;
> but when i try to insert using make_pair() , compiler shows some error.
> could someone tell me how to include these 2 more values without using extra
> map?
>
> --
> ........................
> *MOHIT VERMA*

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to