Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // kr.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- using namespace std;
- class adress
- {
- string misto;
- string vul;
- int bud;
- long int index;
- public:
- adress():misto(""),vul(""),bud(0),index(0){}
- adress(string m, string v, int b, int i):misto(m),vul(v),bud(b),index(i){}
- ~adress(){}
- void setMisto(string m){misto=m;}
- void setVul(string v){vul=v;}
- void setBud(int b){bud=b;}
- void setIndex(long int i){index=i;}
- string getMisto(){return misto;}
- string getVul(){return vul;}
- int getBud(){return bud;}
- long int getIndex(){return index;}
- void set()
- {
- cout<<"Введіть місто: ";
- cin>>misto;
- cout<<"Введіть вулицю: ";
- cin>>misto;
- cout<<"Введіть будинок: ";
- cin>>misto;
- cout<<"Введіть індекс: ";
- cin>>misto;
- }
- };
- void main()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement