+ 3

What should I use

I need to categorize some word on basis of number of letters in it, how can I solve this?

17th Dec 2017, 12:49 PM
Vignesh
2 Answers
+ 12
Use string::length? std::string str = "hello, world"; std::cout << str.length();
17th Dec 2017, 1:40 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
thanks
17th Dec 2017, 1:57 PM
Vignesh