Advertisement
Felanpro

String size function

Dec 5th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string stringSize = "Hello";
  8.  
  9.     cout << "Size of string: " << stringSize.size() << endl;
  10.  
  11.     system("pause");
  12.    
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement