Please send questions to st10@humboldt.edu .
// header for class MyNode ---
//    also include typedef for MyNodePtr at the end,
//    for convenience...
//
// by: Sharon M. Tuttle
// last modified: 11-12-03

class MyNode
{
    public:
        // constructors

        MyNode();
        MyNode(int newQuant, float newCost);
        
        // accessors
        int get_quant() const;
        float get_cost() const;
        MyNode* get_nextPtr() const;

        // mutators
        void set_quant(int newQuant);
        void set_cost(float newCost);
        void set_nextPtr(MyNode *nextNodePtr);

    private:
        int       quant;
        float     cost;
        MyNode    *nextPtr;

}; // end class header

// for convenience
typedef MyNode* MyNodePtr;