Thread: Help!Heap using pointers

  1. #1
    Registered User
    Join Date
    Jan 2015
    Posts
    1

    Question Help!Heap using pointers

    I have to sort the list of chars using heap sort, but the heap shopuld be implemented using pointers. Please help with the implementation.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    27,505
    What do you mean by "the heap should be implemented using pointers"?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Obviously heap sort sorts heaps and he's going to implement the heap to be sorted with pointers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. heap short and heap tree about help me pls
    By webwebcpp in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2014, 12:30 PM
  2. Pointers to objects on the heap
    By foot in forum C++ Programming
    Replies: 3
    Last Post: 07-21-2005, 12:20 PM
  3. Anyone Know HEAP ?
    By Kam in forum C Programming
    Replies: 5
    Last Post: 09-14-2002, 07:47 AM
  4. The heap, using new and delete, and pointers
    By Leeman_s in forum C++ Programming
    Replies: 5
    Last Post: 12-21-2001, 09:08 AM
  5. Pointers, classes, and the HEAP....Please help!!!!!
    By incognito in forum C++ Programming
    Replies: 12
    Last Post: 12-17-2001, 07:27 PM

Tags for this Thread