Guest User

Untitled

a guest
Sep 24th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <complex>
  3. using namespace std;
  4.  
  5. int main() {
  6. complex<int> p;
  7. int m;
  8.  
  9. cin >> p.real() >> p.imag();
  10. cout << p.real() << p.imag();
  11.  
  12. return 0;
  13.  
  14. }
  15.  
  16. T real() const; // (1) C++11 まで
  17. constexpr T real() const; // (1) C++14 から
  18.  
  19. // C++14
  20. constexpr T real() const;
  21. constexpr T imag() const;
  22.  
  23. // C++03
  24. T real() const;
  25. T imag() const;
  26.  
  27. // GCC 4.8.x
  28. T &real();
  29. const T &real() const;
  30. T &imag();
  31. const T &imag() const;
Add Comment
Please, Sign In to add comment