fork download
  1. #include <iostream>
  2. #include <complex>
  3.  
  4. using namespace std;
  5.  
  6. typedef long double C;
  7. typedef complex<C> P;
  8. #define X real()
  9. #define Y imag()
  10.  
  11. using namespace std;
  12.  
  13. int main(){
  14. P p = {1, 2};
  15. P b = {2, 3};
  16. cout << p.X << ' ' << p.Y;
  17. }
  18.  
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
1 2