Day 5 code
This commit is contained in:
parent
95f09146de
commit
75120f935f
3 changed files with 57 additions and 0 deletions
24
ComplexNumber.h
Normal file
24
ComplexNumber.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
//
|
||||
// Created by benmo on 9/30/2020.
|
||||
//
|
||||
|
||||
#ifndef UNTITLED6_COMPLEXNUMBER_H
|
||||
#define UNTITLED6_COMPLEXNUMBER_H
|
||||
|
||||
#include <fstream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class ComplexNumber {
|
||||
public:
|
||||
ComplexNumber(int a, int b);
|
||||
|
||||
int a, b;
|
||||
};
|
||||
|
||||
ostream& operator<<(ostream& os, const ComplexNumber& cn);
|
||||
|
||||
ComplexNumber operator+(const ComplexNumber& cna, const ComplexNumber& cnb);
|
||||
|
||||
|
||||
#endif //UNTITLED6_COMPLEXNUMBER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue