Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstring>
- void print_size (const std::string &str);
- int main(int argc, char const *argv[])
- {
- print_size("В этом предложении 35 символов!");
- return 0;
- }
- void print_size (const std::string &str) {
- std::cout << str.size() << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement