Doubts on Map
-
Hi , My Problem goes like this -: 1. I want to store similar set of data together . 2. so that wen i ask for a certain type i get the whole set. 3. Wen we are storing the data we dont know how many such set will come. Basically i want to group devices of same type(same name) together, and i get them in random order. How should i approach this so that i wont have any performance hit , while retreiving Regards, FarPointer -- modified at 13:42 Thursday 20th April, 2006
-
Hi , My Problem goes like this -: 1. I want to store similar set of data together . 2. so that wen i ask for a certain type i get the whole set. 3. Wen we are storing the data we dont know how many such set will come. Basically i want to group devices of same type(same name) together, and i get them in random order. How should i approach this so that i wont have any performance hit , while retreiving Regards, FarPointer -- modified at 13:42 Thursday 20th April, 2006
-
Any Links to know more Regards, FarPointer
-
Yup i got your idea i will let you know . Regards, FarPointer
-
Hi , My Problem goes like this -: 1. I want to store similar set of data together . 2. so that wen i ask for a certain type i get the whole set. 3. Wen we are storing the data we dont know how many such set will come. Basically i want to group devices of same type(same name) together, and i get them in random order. How should i approach this so that i wont have any performance hit , while retreiving Regards, FarPointer -- modified at 13:42 Thursday 20th April, 2006
FarPointer wrote:
1. I want to store similar set of data together .
Are you talking about a
struct
, or an array?FarPointer wrote:
3. Wen we are storing the data we dont know how many such set will come.
Ok, so just allocate memory dynamicaly. Some classes handle this automatically.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
FarPointer wrote:
1. I want to store similar set of data together .
Are you talking about a
struct
, or an array?FarPointer wrote:
3. Wen we are storing the data we dont know how many such set will come.
Ok, so just allocate memory dynamicaly. Some classes handle this automatically.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
Thanx for the reply . it was basically an implementaion of map of vector as told by kuphyer. It was storing an object of type CMyDevice{ CString szName ; CString szDevice;....}; on the basis of same name in CMyDevice. Regards, FarPointer