Quick Q: In Python I write "for char in str" -- what do I write in C++? -- StackOverflow
Quick A: for( char c : str ).
Recently on StackOverflow:
Traversing a string in C++
I am looking for something similar to traversing a string in Python:
i.e.
for char in str: do somethingHow can I do this in C++?

One reasoned take on the various error reporting mechanisms in C++ and a policy for deciding when each is appropriate: