User Profile

Collapse

Profile Sidebar

Collapse
ggoubb
ggoubb
Last Activity: Nov 21 '08, 07:41 PM
Joined: Nov 21 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ggoubb
    replied to Heap, how to insert?
    in C
    Thanks so much vmpstr!
    It works!!
    See more | Go to post

    Leave a comment:


  • ggoubb
    started a topic Heap, how to insert?
    in C

    Heap, how to insert?

    The purpose of the Insert function is to add a new integer in the Heap assuming that it is not already full. If Heap capacity has been reached, it attempts to double the current capacity. If capacity cannot be doubled, it throws FullHeap.

    Here is the Heap.h file
    const int MAXSIZE = 4; // Default maximum heap size
    class Heap // Smart Heap ADT as an array
    {...
    See more | Go to post
No activity results to display
Show More
Working...