Advertisement
shmuelazrad

Untitled

Dec 11th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // ConsoleApplication4.cpp : This file contains the 'main' function. Program execution begins and ends there.
  2. //
  3. #pragma once
  4. #include "pch.h"
  5. #include <iostream>
  6. using namespace std;
  7. #include "cComplex.h"
  8. #include "Complex.h"
  9.  
  10. int main()
  11. {
  12. cComplex c;
  13. cComplex a;
  14. cComplex x(4, 4);
  15. x.print();
  16. a.print();
  17. a = 3;
  18. a.print();
  19.  
  20. a += x;
  21. a.print();
  22. c = a + x;
  23. a.print();Q
  24. c.print();
  25. c = c + a;
  26. c.print();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement