I'm having a little trouble writing program that on remove all repeat characters
and leave only the non repeated characters. This is want I have so far. Thank in advance.
I'm having a little trouble writing program that on remove all repeat characters
and leave only the non repeated characters.
Your code appears to be trying to count the number of repeated characters, which is different from what you describe the goal as. Perhaps you could provide the expected output for the following input:
You have that in the unique variable that is generated in repeatingCharCount if you change the input method in main to use getline rather than the extraction operator.