#include <iostream>
using namespace std;
#define MAX 100;
class IntStack{
private:
int *stackArray;
int stackSize;
int top;
public:
IntStack();
bool isEmpty();
bool isFull();
void push();
void pop();
void displayStack();
void displayTopElement();
int test();
};
IntStack::IntStack(){
stackSize=MAX;
stackArray[stackSize];
top = 0;
}
IntStack::isEmpty(){
if(top == 0)
return 1;
else
return 0;
}
int main(){
IntStack intStack;
return 0;
}
I'm taking prototype for 'int IntStack::isEmpty()' does not match any in class 'IntStack' error in my compiler also it says candidate is:bool IntStack::isEmpty()
i'm using Dev-C++ 5.11
I just started coding so the other functions is empty.