#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    10
    Rep Power
    0

    Talking I can not remove elements from a stack.[SOLVED!]


    Hello people! :)

    I doubt this code with the following link

    Link to library I use to stack:

    http://codepad.org/AKw9MUdw

    And this is the main link:

    http://codepad.org/0vT3NSvn

    I do not understand why I can not remove the elements of the stack! I do not understand the error search function. :confused:
    Can someone please help me! I'll be grateful now with aid.
    Last edited by tek6; October 23rd, 2012 at 11:47 PM. Reason: Solved
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    71
    Rep Power
    2
    You declare this

    Code:
    struct {TStack
           int depth;
           TStackKey keys [SIZE_MAX];
         };
    What is a TStack and why doesn't it have a semi-colon after it?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    10
    Rep Power
    0
    Hello G4143!

    I'm from Brazil. Do not know much English, so I had to use the google translator. I thought I had fixed errors. But anyway, thank you very much for your attention!
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    71
    Rep Power
    2
    So take it that this

    Code:
    struct {TStack
           int depth;
           TStackKey keys [SIZE_MAX];
         };
    Is really this

    Code:
    struct TStack
    {
           int depth;
           TStackKey keys [SIZE_MAX];
    };
    Your source code translation failed. You have a bunch of invalid characters(\302, \240...) in your source code now.

IMN logo majestic logo threadwatch logo seochat tools logo