EECS 280 Lecture Notes - Lecture 16: Linked List

87 views1 pages

Document Summary

Write a main function that runs an interactive calculator program. In postfix calculator, operators appear after their operands, rather than in between them. (2+3)*5 == 2 3 *5. We must use nodes chained using pointers instead of arrays or vectors. We will need to dynamically allocate the memory for a node to hold the item"s value and the pointers to the next and previous nodes in the linked list. When removing items, we will need to delete that previously allocated memory. Use the public interface of list to implement stack. Use "cout. precision(4);" at the beginning of the main function to set the floating-point precision.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents