#include <fstream>
#include <string>
#include <iostream>
#include <map>
usingnamespace std;
int main (int argc, char *argv[])
{
......
for (int i = 5; i < argc; i++)
{
// Open the file
{
return 0;
}
}
}
for (int i = 5; i < argc; i++){
ifstream file (argv[i]);
string dataIn;
map < string, int > myMap;
// split words from input
while (file >> input)
{
// inc. count
}
map::iterator it;
for (it = myMap.begin(); it != myMap.end(); it++) {
// first is key AND second is value
cout << it->first << " " << it->second << endl;
// More code need to be added...
}
}
}
Thanks, I'm getting warning...
Warning - the output rate '567686.0000 bytes/s' has exceeded the allowed value '6000 bytes/s'; attempting to kill the process.