+ 3
[Solve]When should we use string header ?
#include <string> . At what time shall we use this couze we already have the io one.
4 odpowiedzi
+ 3
Zack The Gamer mostly iostream included string header... but don't be dependent on it.. one should explicitly include string header when you are making use of string header functions... explicit inclusion of string header improve performance compared to without including string header
+ 3
is it like iostream dont support string ? or anything else?
+ 2
string is not used for io. It is used to perform operations on strings (duh). String = wrapper for array of characters with additional methods.
+ 1
it does support. But when you don't need to output anything on screen you won't need iostream, hence to use strings you'd have to include string