В чем может быть ошибка?
#include<iostream>
#include<conio.h>
using namespace std;
class Polinom {
private:
unsigned int degree;
double *exponents;
public:
Polinom();
~Polinom();
friend istream& operator >>(istream&, Polinom&);
friend ostream& operator <<(ostream&, Polinom&);
};
int main() {
Polinom p;
cout << p;
getch();
return 0;
}
Polinom::Polinom() {
degree = 0;
exponents = new double[1];
exponents[0] = 0.0;
}
ostream& operator <<(ostream& os, Polinom& p) {
os << 'degree: ' << p.degree;
return os;
}
Polinom::~Polinom() {
}