|
||||||||||||||||||
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 |
|
![]() Greatwolf Member since: 5/29/2003 From: Mountain View, CA, United States |
||||
|
|
||||
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!} |
||||
|
||||
![]() Vexorian Member since: 10/7/2005 From: Ciudad la paz, Bolivia |
||||
|
|
||||
| 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. |
||||
|
||||
All times are ET (US)![]() |
Last Thread Next Thread ![]() |
|