#include #include #include #include using namespace std;void stat**tic(char str[]){ **tringstream **strm(str); string s; map m; while(**strm >> s) { for(string::size_type i = 0; i < s.size(); ++i) s[i] = tolower(s[i]); ++m[s]; } cout << setiosflags(ios::left) << setw(20) << "[word]" << "\t[frequency]\n\n"; for(map::iterator i = m.begin(); i != m.end(); ++i) cout << setiosflags(ios::left) << setw(20) < i->first << '\t' < i->second << endl;}int main(){ char* p = "c++ ** also used for hardware design \ where design ** initially described in c++ \ then analyzed architecturally constrained \ and scheduled to create a reg**ter transfer \ level hardware description language via high-level synthes**"; stat**tic(p);} 20210311