i have an error in the progeam

And precisely which line is 29? Please use [code] [/code] tags.

Your stated error is the least of your problems. node<> is a templated class - you need to declare its type <s> etc. on just about every occurrence.

EDIT: what offence merited reporting there?

Last edited on
First, when posting code, surround it with code tags, like this:

[code]

// all your code goes here

[/code]



Second, what @lastchance is telling you is that this:

1
2
void print(node*);
void reverse(node*); 


can't make any sense to the compiler because node is a template class, but there are no template parameters supplied.
Topic archived. No new replies allowed.