Not using <string> library, and not getting any errors

in the attached screenshot, you can see I have commented out the library, and there are no errors with my code. The tutorial said I would need the string library in order for cin >> Guess; to work

http://

Different vendor of C++ (clang) different implementation of the C++ Standard Library, they most likely have <string> included in <iostream> or one of the files that it #include's. For portability, you should always include the headers that you use.

1 Like

Privacy & Terms