my question is: is it possible to create a multitype stl set? If a want to calculate the occurrences number from a text file, how can I do? I need to use only or ...
#include <set>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <cstdlib>
#include <fstream>
using namespace std;
int main()
{
set<string, int> danteh;
set<string>::iterator iterator_danteh;
ifstream d1("text.txt");
ofstream d2("output.txt");
string word;
while(!d1.eof())
{
d1 >> word;
danteh.insert(word);
}
cout << endl;
cout << "FINE!";
return 0;
}