Iterate through strings

Hi,

If I has a series of strings with names such as:

string1
string2
string3
string4...etc

How would I create a for loop to interate through them?

-NewCoder
You put them in a vector and iterate through that vector.
So, I guess I could put them in an array also. I was just wondering if there was a way to just iterate through the last character value. Thanks!
So, I guess I could put them in an array also.

But don't. Arrays are for advanced programmers. As a new coder, you should start with vectors.

Variables only have names in your source code. Once the compiler has them, they no longer have names.
Last edited on
Topic archived. No new replies allowed.