STUCK WITH #INCLUDE <STRING>

Pages: 123
Also.

When i put #include <iosteam> im including a library which have classes like isteam and ostream.

When i put #include <string> im including a class NOT a library arnt i?
They are both files that have classes in them. You could think of a "library" as just a term to refer to groups of classes.
Ok, just so im clear...

iostream includes a group of classes, whereas when i put include string im only including that one library arnt i
:D im pretty sure that iostream includes multiple classes such as istream and ostream, whereas string just includes the one class, the string class :D

Thanks for all the help
The strings library also has several other functions and a few operators that have been defined to work differently than they normally do. However, there is only one full class in that library. For further details:

http://cplusplus.com/reference/string/

-Albatross
:D
// Bootiful information. I thought object would be referring to classes, glad it's usually said that way.

// My guess is that even though <string> is made up of one class, it's probably still also called a library.. though it makes more sense if it's a group of classes. But hey, it'd probably still be called a library for clarity, or else you'd be mixing the word library and class for the same thing.
:D
Topic archived. No new replies allowed.
Pages: 123