image Transcription Text 2. Consider The Following Class For A Stack: Class Get Essay Help

Image transcription text
2. Consider the following class for a Stack: class Stack { private: struct Node { float data; Node *next; Node*listpointer; public: Stack ( ) ; -Stack ( ) ; void Push (int newthing) ; void Pop ( ) ; int Top ( ) ; bool isEmpty ( ) ;bool containsone ( ) ; a) Write a method in C called containsOne() that returns true if the stack… Show more… Show more111111111111111111111111111111111