Created
March 22, 2018 22:57
-
-
Save quedlin/193017210f2cb1bb1169edd6186c8cbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// string::length | |
#include <iostream> | |
#include <string> | |
int main () | |
{ | |
std::string str ("Test string"); | |
std::cout << "The size of str is " << str.length() << " bytes.\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment