Help me to know the use of <string> in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Help me to know the use of <string> in c++

26th Dec 2018, 7:37 AM
Jonny Walker
Jonny Walker - avatar
7 Answers
+ 4
"The std::string type is the main string datatype in standard C++ since 1998, but it was not always part of C++. From C, C++ inherited the convention of using null-terminated strings that are handled by a pointer to their first element, and a library of functions that manipulate such strings. [...] ¹" ______ ¹ https://en.wikipedia.org/wiki/C%2B%2B_string_handling#Example_usage
26th Dec 2018, 7:43 AM
Babak
Babak - avatar
+ 3
"I can't understand" Really?! So read and practice this tutorial. https://www.tutorialspoint.com/cplusplus/cpp_strings.htm
26th Dec 2018, 7:48 AM
Babak
Babak - avatar
+ 3
"U are studying what" I'm studying "the science of survival in the bush"!
26th Dec 2018, 7:53 AM
Babak
Babak - avatar
+ 1
Which part of it exactly that you don't understand? have you tried practicing with string yet? I understand the course covers very little of it, but you need to narrow down the question scope to get effective response.
26th Dec 2018, 8:22 AM
Ipang
0
😅😅😅😅 I can't understand
26th Dec 2018, 7:46 AM
Jonny Walker
Jonny Walker - avatar
0
Yea u are right 😅😅😅
26th Dec 2018, 7:49 AM
Jonny Walker
Jonny Walker - avatar
0
U are studying what
26th Dec 2018, 7:49 AM
Jonny Walker
Jonny Walker - avatar