Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

length of string in c++

#include <iostream>
using namespace std;
int main() {
    string str = "Viet Nam";
    cout << "String Length = " << str.size();
  	// you can also use str.length()
    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #length #string
ADD COMMENT
Topic
Name
3+3 =