|
From: Per W. <pw...@ia...> - 2002-11-15 11:21:36
|
class Function;
=2E..
/Per W
By the way, please use text mail.
On Fri, 15 Nov 2002, Bjorn Terelius wrote:
> <html><div style=3D'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=F6rn</DIV></div><br clear=3Dall><hr>MSN 8 helps <a href=3D"http:/=
/g.msn.com/8HMAEN/2023">ELIMINATE E-MAIL VIRUSES.</a> Get 2 months FREE*.</=
html>
>=20
>=20
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing=20
> your web site with SSL, click here to get a FREE TRIAL of a Thawte=20
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|