Search:

Type: Posts; User: djiialnle

Search: Search took 0.01 seconds.

  1. Thread: converting

    by djiialnle
    Replies
    2
    Views
    869

    Couple of possibilities come to mind, depending...

    Couple of possibilities come to mind, depending on if you want to store multiple data types in one object or create a separate object for each data type.

    If you want an object for each data type,...
  2. Replies
    10
    Views
    2,038

    Could you use a recursive function to display an...

    Could you use a recursive function to display an integer with each step? You would have to set some global constant to the number of decimal places you wanted.

    Just a thought.

    :rolleyes:
  3. Replies
    5
    Views
    3,442

    Rear is set to -1 and front is 0 if there is no...

    Rear is set to -1 and front is 0 if there is no data in the array. Rear is incremented when an element is added (push), and front gets incremented when an element is used (pop).

    I can't test...
  4. Replies
    5
    Views
    3,442

    Changing the num

    Changing the

    num<=data[check]

    to

    num>=data[check]

    creates an infinite loop with the code the way it is since the array is initialized to zero. Maybe if I added a part to just put the...
  5. Replies
    5
    Views
    3,442

    Priority Queue Array

    I have written a priority queue program using an array. It works except that the values pop out highest first. I could probably change the pop function to read from the end, but I would like to...
Results 1 to 5 of 5