#include "splitzer.h"

using namespace std;

// find all the lines that refer to each word in the input
map<string, vector<int> >
     xref(istream& in,
          vector<string> find_words(const string&) = split)
{
    funtion body;
}          

error: line 3, expected initializer before using
error: line 6, expected constructor, destructor, or type conversion before "<" token

either I don't know what the error is about, or theres nothing wrong in the code (when compared with other codes that works) yet, the code snippet are given by a book. help anyone?

Try looking in splitzer.h for an error.

What is splitzer.h ?

Can you post the full program ?

As Bob said, look in splitzer.h for the cause of this error. That is the only possibility as the cause of these errors.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.