Thread: Testing some code, lots of errors...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the hat of copycat stevesmithx's Avatar
    Join Date
    Sep 2007
    Posts
    587
    you are passing an array to both of your push and pop function(as 1st argument) but wrongly defined them as double in their function prototypes as well as definition.
    Also main returns int.
    However the error you are getting seems to be weird though.
    Edit:
    Which compiler are you using?
    I think the error might be because the declarations should be made first.
    try moving your
    Code:
    ptr=&stackSize;
    below and see if the error goes.
    Last edited by stevesmithx; 12-15-2008 at 01:02 AM.
    Not everything that can be counted counts, and not everything that counts can be counted
    - Albert Einstein.


    No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
    - Herbert Mayer

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. set testing code
    By zxcv in forum C++ Programming
    Replies: 8
    Last Post: 12-22-2008, 02:58 AM
  2. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 01:37 PM
  3. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM
  4. linked list source code errors
    By C++_Learner in forum C++ Programming
    Replies: 1
    Last Post: 04-18-2002, 11:04 PM
  5. Reqd. C source code for Testing purposes
    By DP in forum C Programming
    Replies: 5
    Last Post: 01-14-2002, 12:45 PM