Advertisement
Guest User

Длина строки

a guest
Oct 26th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6.     cout << "Enter string:\n";
  7.     string str;
  8.     getline(cin, str);
  9.     cout << "Size of string (str.length()): " << str.length() << endl;
  10.     system("pause");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement