String Character Length: Difference between revisions
Content deleted Content added
→[[TCL]]: Fixed capitalization in title. |
No edit summary |
||
Line 96: | Line 96: | ||
{ |
{ |
||
std::string s = "Hello, world!"; |
std::string s = "Hello, world!"; |
||
std::string::size_type length = s.length(); |
std::string::size_type length = s.length(); // option 1 |
||
std::string::size_type size = s.size(); // option 2 |
|||
} |
} |
||