Create a class mystack using vector to store integers in a stack. Add the following methods - ADDO REMOVEO PRINTO exampl
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Create a class mystack using vector to store integers in a stack. Add the following methods - ADDO REMOVEO PRINTO exampl
Create a class mystack using vector to store integers in a stack. Add the following methods - ADDO REMOVEO PRINTO example use: mystack s; S.ADD(5); S.ADD(6); S.ADD(7); S.REMOVE(); //this will remove 7 S.PRINT(); //this prints the whole stack which is 5,6
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!