How we make string length calculating function in c++ using class | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How we make string length calculating function in c++ using class

Please write whole code

13th Feb 2020, 7:34 AM
Onkar Singh
Onkar Singh - avatar
2 Answers
+ 1
Don't even bother, C++ std::string already have built-in member functions that returns the string length. Next time, avoid saying "give me code" or "write the whole code". People don't like to being told what to do as if you were their boss. Rather ask "how do I do this", much nicer, and more likely to get good responses 👍
13th Feb 2020, 8:11 AM
Ipang
0
Ipang you're right
13th Feb 2020, 8:18 AM
Wasi
Wasi - avatar