Advertisement
Guest User

s

a guest
Jan 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <cstdio>
  4. #include <map>
  5. #include <algorithm>
  6. #include <math.h>
  7. #include <string>
  8. #include <cstring>
  9. #include <set>
  10. using namespace std;
  11.  
  12. typedef long long ll;
  13. typedef double ld;
  14.  
  15. struct Petux
  16. {
  17. int name, age;
  18. string hy;
  19. Petux():
  20. name(0),
  21. age(0),
  22. hy("") {}
  23. Petux(int name, int age, string hy):
  24. name(name),
  25. age(age),
  26. hy(hy) {}
  27. int height()
  28. {
  29. return name * 239 + age;
  30. }
  31. Petux operator+ (Petux b)
  32. {
  33. return Petux(name + b.name, b.age, hy);
  34. }
  35. int oeprator%(string s)
  36. {
  37.  
  38. }
  39. bool operator<(Petux a)
  40. {
  41.  
  42. }
  43. };
  44.  
  45.  
  46. bool cmp(Petux x, Petux y)
  47. {
  48. reutrn x.name < y.name;
  49. }
  50.  
  51. vector<Petux> a;
  52.  
  53. Petux oleg;
  54.  
  55. int main()
  56. {
  57. ios::sync_with_stdio(0); cin.tie(0);
  58. freopen("in.txt", "r", stdin);
  59. // freopen("nails.in", "r", stdin);
  60. // freopen("nails.out", "w", stdout);
  61. ll x, y, z, t;
  62. cin >> x >> y >> z >> t;
  63. vector<int> a();
  64. Petux a;
  65. a + b
  66. cin >> a.age >> a.name >> a.hy;
  67. Petux b(3, 4, "kek");
  68. cout << b.name;
  69. sort(a.begin(), a.end());
  70. return 0;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement