Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class realcl
- {
- const int Re;
- double ℑ
- public:
- realcl(int r, double i): Re(r), Im(i)
- {
- cout<<Re+Im<<endl;
- }
- // realcl(int rr, double ri){Re=rr; Im=ri;Dgt=rr+ri;};
- realcl::realcl();
- realcl::~realcl()
- {
- }
- };
- class Complex
- {
- realcl Re,ℑ
- public:
- Complex(int cr,double ci):Re(cr,ci){};
- ~Complex();
- private:
- };
- Complex::~Complex()
- {
- }
- void main()
- {
- Complex ComDgt(2,0.12);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement