On Feb 8, 12:16 pm, dave_mikes...@f astmail.fm wrote:
On Feb 8, 1:03 pm, Travis <travis.bow...@ gmail.comwrote:
>
>
For your implementation, it appears that the iostream header includes
the string header, but as others have stated, that is not guaranteed
to be the case in other implementations . In other words, you could
try to compile your code with another compiler and it might fail. May
as well be safe and include <stringin your code.
>
So you're saying that by including <iostream>, it then includes
<string>?
<string>?
For your implementation, it appears that the iostream header includes
the string header, but as others have stated, that is not guaranteed
to be the case in other implementations . In other words, you could
try to compile your code with another compiler and it might fail. May
as well be safe and include <stringin your code.
Leave a comment: