?? operand.h
字號:
#ifndef __OPERAND_H__
#define __OPERAND_H__
#include "tdafx.h"
struct Operand
{
/* virtual void Mul(const Operand&){}
virtual void Div(const Operand&){}
virtual void Add(const Operand&){}
virtual void Sub(const Operand&){}
*/
virtual double GetResult()const{return 1;}
virtual double GetSingleValue()const=0;
virtual bool operator<(const Operand&)const{return false;}
virtual bool IsConst()const{return false;}
virtual string GetExpression()const{return "";};
//virtual void FillNode(double){}
virtual ~Operand(){};//不能為純虛
protected:
Operand(){}//不能為私有??
};
#endif //__OPERAND_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -