Create a class mystack using vector to store integers in a stack. Add the following methods - ADDO REMOVEO PRINTO exampl
Posted: Mon May 09, 2022 7:01 am
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