I want to compare the different elements of a command-line argument. It would be entered all together resulting in the string being found at argv[1]
. However, I am not sure how to compare the elements and individual characters as I am looking for repetitions.
If I compared [2]
to [3]
in the string, there would be nothing there as only 1 string is entered in the command line argument and I need to compare the characters found within that string argv[1]
. I am unable to include spaces so I wouldn't be able to compare argv[2]
to argv[1]
.