-2

enter image description here

Under the display() and evaluate() I get an error code saying that the explicit type is missing('int' assumed). I'm stuck on this part and I'm wondering how I could fix this, would appreciate any assistance.

#pragma warning
#include <iostream>
using namespace std;
class poly {
    int degree;
    int* coeff;

public:
    poly(int);
    poly(poly&);
    poly();
    ~poly();
    display();
    evaluate(int);
    poly operator+(poly&);
    poly operator*(poly&);
}; 
drescherjm
  • 10,365
  • 5
  • 44
  • 64
ZuperSoldat
  • 9
  • 1
  • 3

1 Answers1

2

Instead of

display();

write

void display();

And ditto for evaluate.


Tip: you can use free tools like AStyle to format your code with proper indenting.

Tip: The Definitive C++ Book Guide and List provides a nice list of C++ textbooks.

Community
  • 1
  • 1
Cheers and hth. - Alf
  • 142,714
  • 15
  • 209
  • 331