Answer to Question #19724 in C++ for mohamed rani
2012-11-29T04:44:21-05:00
#include<iostream>
using namespace std;
class Bank
{
public:
int id;
char name[30];
char address [30] ;
int Idofvisa ;
int Balance ;
struct Stack
{
int top;
Bank w[10];
};
void reset(Stack *s)
{
s->top=-1;
}
void push(Stack *s,Bank w)
{
s->top++;
s->w[s->top]=w;
}
Bank pop(Stack *s)
{
return s->w[s->top--];
}
void main()
{
Bank i,j;
cout<<"enter Custmer Name :"<<endl;
cin>>i.name ;
cout<<"enter Bank Address:"<<endl;
cin>>i.address;
cout<<"enter student Balance:"<<endl;
cin>>Balance;
Stack s;
reset(&s);
push(&s,i);
j=pop(&s);
cout<<"custmer name"<<endl;
cout<<"Custmer address:"<<j.address<<endl;
cout<<"studen Balance:"<<j.Balance<<endl;
}
};
1
2012-11-29T04:44:52-0500
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS !
Learn more about our help with Assignments:
C++
Comments
Leave a comment