Hello, I am using Code Blocks and currently having an issue with debugging. I want to start debugging the problem but I only receive the error "Error Expected unqualified-id '(' token" in line 1" every time I try to compile. I am using headers and prototypes but I'm sure the problem lies in my header. I'll post the rest of my code but the header first
#ifndef JARVIS_H
#define JARVIS_H
class math
{
private:
int val1;
int val2;
public:
math()
{
cout<<"calling math constructor"<<endl;
}
void setValues (int a, int b){
int a = val1;
int b = val2;
}
~math()
{
cout<<"calling math deconstructor"<<endl;
}
}
class addition:public math
{
int finalVal = val1 + val2;
return finalVal;
};
class subtraction:public math
{
int finalVal = val1 - val2;
return finalVal;
};
class multiplication:public math
{
int finalVal = val1 * val2;
return finalVal;
};
class division:public math
{
int finalVal = val1 / val2;
return finalVal;
};
#endif //JARVIS_H