struct Faculty
{
int id;
char name[30];
char status[10]; //status permanent or visiting
Faculty next;
};
Assume we have three stacks S, V and P. S is a stack having mix data of visiting and permanent faculty members, V is empty and for visiting faculty memebrs and P is also empty for permanent faculty members. Using primitive functions of stack write a C++ code which reads entire data from S and write on respective stack V or P.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here