0

does the <iostream> load <string> as well?

including libraries

18th Aug 2016, 7:55 PM
Joseph Meeko
Joseph Meeko - avatar
4 Réponses
+ 5
No, and it's, in my opinion, also not sad. Separation of concern is *the* means for clean reusability.
18th Aug 2016, 8:49 PM
Stefan
Stefan - avatar
0
Sadly not.
18th Aug 2016, 8:16 PM
Ahkrin
0
Unfortunately it does not. You will need to include both <iostream> and <string> in your header.
20th Aug 2016, 9:59 PM
Clayton Summers
Clayton Summers - avatar
0
The <string> library is included in <iostream> library. So you do not need to write it if you are using <iostream> .
3rd Sep 2016, 11:42 PM
Davood Abdollahi
Davood Abdollahi - avatar