<string> vs <iostream> : is string library inside iostream header !? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

<string> vs <iostream> : is string library inside iostream header !?

"string" is a class used by C++ to represent and manipulate comfortably and easily string handling. We access the class via a string header <string>. It allows us to perform concatenation, copying, comparison. Additionally various method for string manipulation such as erasing, insertion, searching and replacing are available. The <iostream> header is used to access generally the input and output functionality. So we may perform some string methods like copying and concatenation. But some methods will remain unavailable. For further understanding read " A complete guide to programming in C++" by Jones and Bartlett Publishers at www.jbpub.com

4th May 2020, 1:19 PM
Jeff
1 Answer
0
The Q&A section is only for questions (though that is some interesting information...) Take a look at this: https://www.sololearn.com/Discuss/1316935/welcome-to-sololearn-forum/
4th May 2020, 1:51 PM
CeePlusPlus
CeePlusPlus - avatar