Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <algorithm>
- #include <iostream>
- #include <string>
- int main()
- {
- std::string str = "Ala ma kota";
- for(short i(32); i<127;i++)
- std::cout << char(i) << "-" <<std::count(str.begin(), str.end(), char(i)) << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement