Archived

This topic is now archived and is closed to further replies.

Makoy

Newbie Programmer

Recommended Posts

quote:
Original post by ToohrVyk
You''re new here? Makoy->~here( )


Surely you mean

Makoy *thisMakoy;
thisMakoy=(Makoy*)malloc(sizeof(Makoy));
thisMakoy->Makoy();


We don''t want to destruct our newbies the moment they arrive!

Makoy: I''d say welcome, but that''s what everyone else does.. so:

It''s a pleasure to meet me. I hope you never find a live turtle in your soup.



Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.

Share this post


Link to post
Share on other sites
Makoy *thisMakoy;
thisMakoy=(Makoy*)malloc(sizeof(Makoy));
thisMakoy->Makoy();

web:\gamedev\beginners.cpp(1) : error C2501: 'Makoy' : missing storage-class or type specifiers

Do not forget that

Makoy = new here;

Therefore it's a variable of type (here*) (A pointer to here. How useful.), and not a classname.

ToohrVyk



[edited by - ToohrVyk on July 2, 2003 3:41:04 PM]

Share this post


Link to post
Share on other sites