Skip to content

Commit b9bc1a3

Browse files
committed
add: sizestring.cpp
1 parent aaaf52e commit b9bc1a3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sizestring.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// string::size
2+
#include <iostream>
3+
#include <string>
4+
5+
int main ()
6+
{
7+
std::string str ("Hello, World!");
8+
std::cout << "Hello, World!";
9+
std::cout << "The size of str is " << str.size() << " bytes.\n";
10+
return 0;
11+
}

0 commit comments

Comments
 (0)