Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename T>
- void Stack<T>::push(T data)
- {
- Node<T>* temp = new Node<T>;
- temp->data = data;
- temp->next = mHead;
- mHead = temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement