请教:出错了怎么办?
在用编译以下C++程序时
#include <iostream.h>
#include <stdlib.h>
typedef struct
{
float *opd;
int opdSize;
int top;
}OPERAND;
class operand1
{
private:
OPERAND oprand;
public:
operand1();
void InistOprand(int opdSize);
void Push(float& ch);
float Pop(void);
int IsEmpty();
friend void display(operand1 &opd);
};
出现两个错误:
:\vc work folder\pression\operand.h(9) : error C2371: 'OPERAND' : redefinition; different basic types
j:\vc work folder\pression\operand.h(9) : see declaration of 'OPERAND'
j:\vc work folder\pression\operand.h(12) : error C2011: 'operand1' : 'class' type redefinition
operand.cpp
想了很久也不知道哪里出错。
请高手指点。