Skip to content

Commit

Permalink
Updated on Tue Feb 4 12:02:42 GMT 2025.
Browse files Browse the repository at this point in the history
  • Loading branch information
vedaldi committed Feb 4, 2025
1 parent 72fe33f commit 3da5dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions part-1/stack_rpn_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ int main(int argc, char **argv)
stack.push(3);
plus(stack);
multiplies(stack);
std::cout << "2 2 2 + * = " << stack.top() << '\n';
std::cout << "2 2 3 + * = " << stack.top() << '\n';

// Advanced interface (optional)
stack << 2 << 2 << 3 << plus << multiplies;
std::cout << "2 2 2 + * = " << stack.top() << '\n';
std::cout << "2 2 3 + * = " << stack.top() << '\n';

return 0;
}

0 comments on commit 3da5dcb

Please sign in to comment.