Just a small correction, string is not part of iostream, but STL - Standard Template Library.

To be more precise, the string class is a specialization of a general container template basic_string...