sdmoochew2
Programmer
Hi there!
Ok. I am writing a simulated electronic diary. It takes a user input time, date and event/appiontment.
I have created a stack and each input is added as a node.
But, I am trying to write and option that displays the node #n, where n is the user input. SO im trying to make my stack like an array and display eg. MyStack[2].display()
However im not sure how to overload the [] operator.
CAN ANYONE PLEASE HELP?? It would be greatly appreciated.
Ok. I am writing a simulated electronic diary. It takes a user input time, date and event/appiontment.
I have created a stack and each input is added as a node.
But, I am trying to write and option that displays the node #n, where n is the user input. SO im trying to make my stack like an array and display eg. MyStack[2].display()
However im not sure how to overload the [] operator.
CAN ANYONE PLEASE HELP?? It would be greatly appreciated.