#include<string> obsolete on mac?

Hey ho folks.
I just started the tutorial. I found out that I didn’t see an error on the cin >> line.
It worked fine for me without “#include

Is it included by default? Or is it recommended to use the string library and double check?

It differs on implementation, I believe Xcode uses Clang by default and I guess they have <string> included in <iostream>. It’s not something you should count on as like I said it varies on implementations. That code would not compile on MSVC for example as std::string is only forward declared and you would need the full type to use std::cin with std::string.

…Also it’s fine if you didn’t understand that last part of that sentance.

I see in another tutorial I saw that C++ used to work with C-Strings (which looks awful because they use arrays to store data.) is a “true” string so to speak.

Not sure what you mean by work with? std::string is a user-defined type, it will have a char array in its implementation.