Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- system("chcp 1251>nul");
- //сам текст
- //char txt[] = "I can never be satisfied with anyone who would be blockhead enough to have me.";
- int size = 80;
- char* txt = new char[size];
- cout << "Введите текст:n" ;
- cin.get(txt, 80);
- //количество символов
- int s = strlen(txt);
- cout << "Количество символов в тексте: " << s << endl;
- //счетчик слов
- int count=0;
- int slov = 0, i = 0, k = 0, j = 0;
- while (txt[i] != '