Weird error
#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?
Related Article: Weird bug please help
is a C++ discussion thread by Epickup that has 5 replies and was last updated 11 months ago.
Vastor
Junior Poster in Training
84 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
As Bob said, look in splitzer.h for the cause of this error. That is the only possibility as the cause of these errors.
rubberman
Posting Maven
2,571 posts since Mar 2010
Reputation Points: 365
Solved Threads: 305
Skill Endorsements: 51