Thank you kindly.
EDIT: Thanks for the help, it's running a lot better than before. I do have an additional problem now though, and it's probably a beginner's error, but I can't see it. When the number becomes two digit now, it adds the person at the end, but it runs through the loop an additional time and adds a person at position = 0 (top of the chart).
command = input;
int counter = 0;
for (counter = 1; counter < input.length(); counter++)
if ( isdigit(input[counter]) )
input.copy(numbers,input.length() - counter, counter);
cout<<"atoi(numbers) = "<< atoi(numbers)<<endl;
chart.insert( atoi(numbers) );