No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
// File : Suitors.h #ifndef SUITORSLIST_H #define SUITORSLIST_H #include <iostream> using std::cout; using std::endl; class SuitorsList { private: struct ListNode { int value; ListNode * next; }; ListNode * head; public: SuitorsList() { head = NULL; } void appendNode(int num); void deleteNode(int num); void displayList() const; }; #endif; // File … |
|
In an ancient land, the beautiful princess Eve had many suitors. She decided on the following procedure to determine which suitor she would marry. First, all of the suitors would be lined up one after the other and assigned numbers. The first suitor would be number 1, the second number … |