string lenght to int c++ code example
Example: length of a string c++
string str ="hello world";
//different ways to find length of a string:
str.length();
str.size();
string str ="hello world";
//different ways to find length of a string:
str.length();
str.size();