Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to get string length in c++

string txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
cout << "The length of the txt 
  string is: " << txt.length();
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #string #length
ADD COMMENT
Topic
Name
3+5 =