@Пaтрик
417 / 392 / 40
Регистрация: 21.01.2012
Сообщений: 972
|
19.10.2012, 08:50
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
11
| #include <iostream>
#include <string>
#include <algorithm>
#include <cctype>
int main()
{
std::string str;
std::getline(std::cin, str);
std::cout << std::count_if(str.begin(), str.end(), isalpha) << std::endl;
} |
|
1
|