We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,610 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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?

4
Contributors
3
Replies
5 Hours
Discussion Span
8 Months Ago
Last Updated
4
Views
Vastor
Junior Poster in Training
84 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Try looking in splitzer.h for an error.

Bob
using namespace Bob
Team Colleague
221 posts since Feb 2003
Reputation Points: 30
Solved Threads: 11
Skill Endorsements: 0

What is splitzer.h ?

Can you post the full program ?

np complete
Posting Whiz
385 posts since Sep 2010
Reputation Points: 18
Solved Threads: 36
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

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0816 seconds using 2.75MB