Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main ()
- {
- int wynik=0;
- fstream odczytaj("tralalalala.txt");
- char ymary;
- while(odczytaj>>ymary)
- {
- if (ymary=='a')
- {
- wynik++;
- }
- }
- cout<<"wynik to:"<<wynik<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement