Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //complex0.h
- void val();
- friend std::iostream & operator>>(std::iostream & os, Complex0 & c);
- //coplex0.cpp
- void Complex0::val()
- {
- cout << "Podaj czesc rzeczywista: ";
- cin >> real;
- cout << endl << "Podaj czesc urojona: ";
- cin >> imag;
- cout << endl;
- }
- std::iostream & operator<<(std::iostream & os, Complex0 & c)
- {
- c.val();
- return os;
- }
Add Comment
Please, Sign In to add comment