#include #include #include #include using namespace std; int main(){ ifstream urandom("input"); //Requires a file named 'input' char temp; map counts; while (urandom >> temp){ ++counts[temp]; } cout << endl << "Symbol ==> Amount" << endl; for (map::iterator itr=counts.begin(); itr!=counts.end(); ++itr){ cout << itr->first << " ==> " << itr->second << endl; } return 0; }