Home » Community » Forums » » Modular Programming: A Classless Approach Part I
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 Modular Programming: A Classless Approach Part I
Post Reply 
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!}

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

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.

 User Rating: 1035   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: