i want to do the same thing to several variables such as xword1, xword2, xword3...They are all the same type and in my case usually a string. is there a way that i can do something like xword[i] to shorten my code. or a way to use recursion for this? it would be really nice if it was something that worked with my string::iterators, but if not then i will work around it.
Code:for (ix = p1xword1.begin(); ix < p1xword1.end(); ix++){
p1curWord1 += "*";