example.c
Click here to get the file
Size
1 kB
-
File type
text/plain
File contents
#include <String.h>
#include <Map.h>
#include <stream.h>
main() {
Map<String,int> count;
String word;
while (cin >> word)
count[word]++;
cout << count << endl;
return 0;
}