I was taught string::at in school, but by exploring the string library I saw string::operator[], which I was never shown before.
string::at
string::operator[]
I\'m now u
Yes, there is one major difference: using .at() does a range check on index passed and throws an exception if it's over the end of the string while operator[] just brings undefined behavior in that situation.