So, this is the assignment:

3-3. Write a program to count how many times each distinct word appears in its input.

You might recognize it from Accelerated C++.

I have come as far as to initialize the vector and giving it the same amount of elements as the input:

Code:
    vector<string> skrivning;
    double x;
    while (cin >> x)
    {
          skrivning.push_back(x);
    }
What I'm not so sure of how to do is to actually find the words and pick out their letters to see what they really contain. Any help?