vector of strings

hi
what is the best way of defining a vector of strings inwhich elements starts from "M00000" and ends up at "M01269".
Thanks
hash mobtadi
What do you need such a predictable array for? Maybe there's a better way of doing it.
these are the IDs of some sequences that I need to keep them in a calss or data structure and later on call each of these sequences by these IDs.
Thanks
hash
So basically you plan on doing a string comparison search to match an ID such as "M00128" to an element in the array, right?
Since this will always give you the number 128, I think it would be easier and faster to just convert the ID to a integer using atoi(ID+1).
Topic archived. No new replies allowed.