I'm trying to do something like this: Name[i] = "Name" + (i+1)
in a forloop, so that the values of the array will be: Name[0] = Name1
, Name[1] = Name2
, Name[2] = Name3
.
Is there an easier way to do this beside converting the value of i
to a char
and add it to the string?