Hi! I wanted to delete data in a stack if the student code is the particular code. First I copied object student to temp. Then I emptied the object student
Main class:
studentStack temp;
temp.copyStack(student);
student.initializeStack();
while (!temp.isEmptyStack()){
if (!temp.checkStudentCode(code)) //return true if it is the particular code
student.push(temp.top());