(queue*)this)->queue::qput’ does not have class type
i got this error:
Code:
cplusplus_dellicult.cpp:23: error: ‘((queue*)this)->queue::qput’ does not have class type
cplusplus_dellicult.cpp:26: error: ‘((queue*)this)->queue::qput’ does not have class type
can anyone help to fix this ?
thanks..
Code:
class queue{
private:
string buf[10];
int *ptrfront;
int *ptrback;
public:
void init();
void qput();
void qget();
void print();
};
void queue::init(){
int i;
for(i=0; i<10; i++){
qput.buf[i] = NULL;
}
for(i=0; i<10; i++){
qput.buf[i] = NULL;
}
}