0
Difference between size and length in c++ for string?
string a,b; a.length a.size() what is the diffference between these two
2 Antworten
+ 2
They are synonyms for each other. Same function per the documentation.
http://en.cppreference.com/w/cpp/string/basic_string
http://en.cppreference.com/w/cpp/string/basic_string/size
+ 1
quite similar