So I've made this program for my class, but I keep getting the same error, any help would be much appreciated.
Here is the code in complexx.h
class complex
{
public:
complex(double x = 0.0, double y = 0.0);
double magnitutde() const;
double realPart() const;
double imagPart() const;
The error I get with std::istream is
‘istream’ in namespace ‘std’ does not name a type
However when I included
#include<iostream>
using namespace std;
it worked, if I did it with std::istream instead would I still need #include <iostream>?