Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- string slowo;
- string tekst;
- int main()
- {INT MAIN()
- {
- ofstream wejscie("tekst.txt");
- ofstream wyjscie("wynilo2.txt");
- int czestotliwosc[26];
- for(int j=0; j<26; j++)
- czestotliwosc[26]=0;
- int suma=0;
- for(int i=0; i<1876; i++)
- {
- string slowo;
- wejscie>>slowo;
- for(int j=0; j<slowo.length(); j++)
- czestotliwosc[slowo[j]-'A']++;
- suma += slowo.length();
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment