Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- #include <fstream>
- struct complex {
- float rzeczywista;
- float urojona;
- complex() {
- rzeczywista = 0.0;
- urojona = 0.0;
- }
- complex(const float& a, const float& b) {
- rzeczywista = a;
- urojona = b;
- }
- };
- complex add(const complex& a, const complex& b);
- complex substract(const complex& a, const complex& b);
- complex multiply(const complex& a, const complex& b);
- bool equals(const complex& a, const complex& b);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement