C++: Syntax error before '{' token

clamum

Lifer
Feb 13, 2003
26,256
406
126
I'm getting this error when I try to run make:

WordBinaryTree.h:29: error: syntax error before '{' token

I have no idea what's wrong. Probably something dumb that I'm overlooking. Here's the code:
 

clamum

Lifer
Feb 13, 2003
26,256
406
126
Originally posted by: asleepwalking00
Didn't #include BinaryTree?

Yeah, that fixed it. I didn't know you had to include .h files if you're extending a class. Definitely different than Java. Thanks!