|
-
August 17th, 2005, 05:35 PM
#1
mutiple strings to handle ???
Hi,
I have a 4 string of arrays with which I need to simultaneously access them by index or by key. Sorting is an option but not needed. Is there any efficient (performance and memory management are critical) way of doing this? All the responses are welcome. Please let me know as I have been struggling with quite some time now.
Thanks for your help in advance.
-
August 17th, 2005, 08:27 PM
#2
Re: mutiple strings to handle ???
can you show some code so that we can help you?
-
August 17th, 2005, 08:55 PM
#3
Re: mutiple strings to handle ???
-
August 18th, 2005, 01:50 AM
#4
Re: mutiple strings to handle ???
-
August 18th, 2005, 02:12 AM
#5
Re: mutiple strings to handle ???
you can use CList or CSimpleArray etc
-
August 18th, 2005, 12:26 PM
#6
Re: mutiple strings to handle ???
OK, Here is the piece of code I was using. This works fine in XP But I see problem with Win CE version.
CStringArray csType;
CStringArray csVel;
CStringArray csAttn1;
CStringArray csAttn2;
CStringArray csAttn3;
The array will grow as user enters the data of each one. I ma updating or removig the data from array with Index of each array.
Is there any othey efficient way of doing this?
Thanks.
-
August 18th, 2005, 12:40 PM
#7
Re: mutiple strings to handle ???
 Originally Posted by ramancv
Is there any othey efficient way of doing this?
Thanks.
To repeat what others have already stated, have you investigated using std::map or CMap?
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|