I'm trying to learn C++ out of a book. One of the examples is:
string s("some string");
if (s.begin() != s.end())
auto it = s.begin();
*it == toupper(*it);
When I put this into Visual Studio, I receive an error declaring that *it is undefined and it won't compile.
I know this is probably the most basic thing of all time, I'm just trying to understand why it's undefined. Is this just a bad example for a pointer to an iterator?