segítség error:expected constructor, descructor, or type conversion before '*' token

Fórumok

Sziaztok!

Binkerfának akarom megírni a kereső függvényét, aminek a tipusa Elem*.
A cpp-be ezt írtam:

template 'kacsacsőr'class T 'kacsacsőr'
Elem* BKFa'kacsacsőr' T 'kacsacsőr'::keres()

És ezt a hibát dobja rá:

error: expected constructor, descructor, or type conversion before '*' token
error: expected ';' before '*' token

Mostan mit csináljak?
(itt jobban látható: http://hup.pastebin.com/m60156f38 )
Köszi:Koli

Hozzászólások

Rakd code blokkba a kódot, mert így eléggé érthetetlen!

KisKresz

Hasznald a code-ot: <code> a bemasolt kod </code>

Amugy az Elem hasznal template-et? Van nevter?

"If you must mount the gallows, give a jest to the crowd, a coin to the hangman, and make the drop with a smile on your lips" The Wheel of Time series

Akkor az elemnek is van template parametere, nem csak a BKFa-nak?
Mert ha igen, akkor valami ilyesmi:

template< class T>
Elem< T > BKFa< T >::keres

"If you must mount the gallows, give a jest to the crowd, a coin to the hangman, and make the drop with a smile on your lips" The Wheel of Time series