Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. // kr.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <string>
  7.  
  8. using namespace std;
  9.  
  10. class adress
  11. {
  12. string misto;
  13. string vul;
  14. int bud;
  15. long int index;
  16. public:
  17. adress():misto(""),vul(""),bud(0),index(0){}
  18. adress(string m, string v, int b, int i):misto(m),vul(v),bud(b),index(i){}
  19. ~adress(){}
  20.  
  21. void setMisto(string m){misto=m;}
  22. void setVul(string v){vul=v;}
  23. void setBud(int b){bud=b;}
  24. void setIndex(long int i){index=i;}
  25.  
  26. string getMisto(){return misto;}
  27. string getVul(){return vul;}
  28. int getBud(){return bud;}
  29. long int getIndex(){return index;}
  30.  
  31. void set()
  32. {
  33. cout<<"Введіть місто: ";
  34. cin>>misto;
  35. cout<<"Введіть вулицю: ";
  36. cin>>misto;
  37. cout<<"Введіть будинок: ";
  38. cin>>misto;
  39. cout<<"Введіть індекс: ";
  40. cin>>misto;
  41. }
  42.  
  43. };
  44.  
  45.  
  46. void main()
  47. {
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement