|
From: Bjorn T. <bjo...@ho...> - 2002-11-15 10:42:37
|
<html><div style='background-color:'><DIV>When compiling a program containing the following code I get a syntax error at the line Function* f;<BR></DIV>
<DIV> </DIV>
<DIV>struct Tal<BR>{<BR>Function* f;<BR>// some stuff</DIV>
<DIV>};</DIV>
<DIV> </DIV>
<DIV>class Function<BR>{<BR>public:<BR>// some more stuff<BR>private:<BR>Tal* first;<BR>};</DIV>
<DIV> </DIV>
<DIV>I assume it is because the compiler doesn't recognize Function as a class. Is that correct? How should I write the code?</DIV>
<DIV> </DIV>
<DIV>Thanks for any help</DIV>
<DIV>Björn</DIV></div><br clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMAEN/2023">ELIMINATE E-MAIL VIRUSES.</a> Get 2 months FREE*.</html>
|