G
gurumare
hello, i would like to increment a string in a for loop. The desired
output would look like:
team0
team1
team2
and so on. I use the code
for (int i = 0; i < numTeams; i++) {
sName = "team"+i;
a.SetName(sName);
}
and get the output:
team
eam
am
and so on. What can i do to get the desired effect in the most simple
way possible? thank you
output would look like:
team0
team1
team2
and so on. I use the code
for (int i = 0; i < numTeams; i++) {
sName = "team"+i;
a.SetName(sName);
}
and get the output:
team
eam
am
and so on. What can i do to get the desired effect in the most simple
way possible? thank you