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,...
Type: Posts; User: djiialnle
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,...
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:
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...
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...
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...