Im getting the subject line error with the below code. I have a linked list of chars that Im trying to place into strings in order to compare the two. Not sure why Im receiving this error...
The subscript operator can only be used to access existing characters in the string. If you want to add a new character to the end of the string you can use += or push_back.