now i get even stranger resutls:
this line:
- name = "Unnamed Civilian: "+ static_cast<char>(myID);
appears in a civilian class and name is a string.
when i cout the strings of successive civilians, i get these results:
Unnamed Civilian
nnamed Civilian
named Civilian
amed Civilian
med Civilian
ed Civilian
d Civilian
ect...
the value in myID comes from a static int, nextID which starts at 0 and then nextID++ every time a number is used...
i assume it has something to do with how i concatenate the string because a cout of the myID values yields:
0
1
2
3
4
5
6
7
8
9