Feb 20, 2012 at 4:47am
I need to put every letter of the alphabet in a vector isolated, so like this:
|A||B|C|D|...|X|Y|Z|
How would I go about doing this efficiently?
Feb 20, 2012 at 4:52am
You could use the ascii table and loop through it with the first number being the start of the alphabet (41 for capital A and 61 for lower case a).
Feb 20, 2012 at 4:56am
Does that work Cire? I've only done the most basic work with C++ and STL containers. I'm always seeing new methods that boggle my mind.
Feb 20, 2012 at 5:01am
Yes, it works. The behavior required for iterators is satisfied by non-void pointer types.
Last edited on Feb 20, 2012 at 5:02am