63 838
Assignments Done
99,2%
Successfully Done
In August 2018

Answer to Question #19724 in C++ for mohamed rani

Question #19724
#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;
}
};



Expert's answer
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&#039;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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions