Skip to main content
GameDev.net gamedev.net
🔒 Locked

Modular Programming: A Classless Approach Part I

Started by Myopic Rhino Feb 21, 2001 at 9:12 AM 1 replies 1k views
Greatwolf
Greatwolf
Why is main() returning void in the example used in this article? Also what''s wrong w/ using classes in C++ to accomplish what the author''s trying to do in the article? Wouldn''t there also be a problem in using a linked list for keeping track of the instances of the objects? If you need an object that''s in the middle of the list you''ll have to traverse through the list to get to that object. That doesn''t seem very efficient to me.





--{You fight like a dairy farmer!}
--{You fight like a dairy farmer!}
Vexorian
Vexorian
Since the non-class approach is already using an struct, why not just use an struct for the instances instead of all those problems. SDL works like that without using classes.
------ XYE - A new edition of the classic Kye

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.