void delete_repeats(string & theString)
{
int left = 0;
while (left < (theString.length() - 1))
{
int right = left + 1;
while (right < theString.length())
{
if (theString[right] != theString[left])
{
right++;
}//end if
else
{
for (int i = (right <= (theString.length() - 2));;)
{
theString.at(i) = theString.at(i + 1);
}//end for
}theString.erase(theString.length() - 1);
left++;
}//end second while
} //end of first while
} // end delete_repeats function