Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- class Bank
- {
- private:
- char apps[30];
- protected:
- int type;
- public:
- char *p;
- char name[30];
- int number;
- float adress;
- float weight;
- Bank()
- {
- number=0;
- adress=0;
- weight=0;
- }
- Bank(int l, int z, float x, float c)
- {
- type=l;
- number=z;
- adress=x;
- weight=c;
- }
- ~Bank()
- {
- cout << "Constructor Delete" << endl;
- }
- void read()
- {
- cout << "Write apps:" << endl;
- cin >> apps;
- cout << "Write type:" << endl;
- cin >> type;
- cout << "Write name:" << endl;
- cin >> name;
- cout << "Write number:" << endl;
- cin >> number;
- cout << "Write adress:" << endl;
- cin >> adress;
- cout << "Write weight:" << endl;
- cin >> weight;
- }
- void moving()
- {
- }
- void display()
- {
- cout << "Apps=" << apps << endl;
- cout << "Type=" << type << endl;
- cout << "Name=" << name << endl;
- cout << "Number=" << number << endl;
- cout << "Adress=" << adress << endl;
- cout << "Weight=" << weight << endl;
- }
- void sorting()
- {
- }
- };
- int main()
- {
- Bank obj;
- obj.~Bank();
- obj.read();
- obj.moving();
- obj.display();
- obj.sorting();
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement