cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
#include<string>
#include<string>
Sep 30, 2010 at 5:45pm UTC
a2d2
(2)
When is #include<string> required in order to use strings? Even when I don't use it, I can still incorporate type string names in my code.
Sep 30, 2010 at 5:47pm UTC
Athar
(4466)
That's because it might already be included by another standard header. You can't rely on that.
It's likely to be different with another compiler or even the next version of the one you're using.
Sep 30, 2010 at 10:19pm UTC
a2d2
(2)
Athar, thanks for the explanation. --a2d2
Topic archived. No new replies allowed.