C++: Binary Heap : <p>I'm working on a C++ implementation of a Binary Heap, but I'm having some issues getting started. Here's a snippet of my code:</p>

<pre><code>class binaryHeap {

public:

    // Constructor
    binaryHeap(int _capacity)
    {
        // initializes the binary heap with a capacity, size, and space in memory
        _size = 0;
        _n = ceil(pow(2, log10(_capacity)/log10(2)));
        _heap = new int[_n];
    }

    ~binaryHeap(void)
    {
        delete[] _heap;
    }

/* Omitted: insert, remove, size, capacity functions
   Not necessary to the issue I'm having */

private:

    int _size;
    int _capacity;
    int _n;
    int *_heap;
};
</code></pre>

<p>In the main.cpp file, when I write the following line:</p>

<pre><code>struct BinaryHeap heap(10);
</code></pre>

<p>I get the error: <em>Variable has incomplete type 'struct BinaryHeap'</em>. Any ideas what is causing this?</p>
