Thread: Game programming task

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    Game programming task

    http://www.suckerpunch.com/joblist.p...Programmer.txt

    Check out the requirement at the bottom of the page. Sounds easy enough eh?

    One problem. Since they do not allow you to use malloc, new or a simple STL queue and yet want you to destroy the memory - how do you do this?

    The memory they are showing is created on the stack. Therefore calling destroy on the queue will do....um....nothing. You can't destroy it. Only thing you can do is flag the queue as being invalid and unusable.

    Comments? The problem itself is quite easy. But I'm not understanding the destroyQ() function. Doesn't make sense.

    The C++ version they are asking for is so simple. Just use the STL.

    EDIT:Ahhh...destroyQ() is simply destroying the pointer.
    Any takers?

    Why not do a contest that could land you a job eh?
    Last edited by VirtualAce; 12-05-2005 at 02:37 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do the game engine and the api interact?
    By Shadow12345 in forum Game Programming
    Replies: 9
    Last Post: 12-08-2010, 12:08 AM
  2. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 03:46 PM
  3. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  4. Scheduling Algo
    By BigDaddyDrew in forum C++ Programming
    Replies: 41
    Last Post: 03-08-2003, 11:00 AM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM