📄 polyitem.h
字号:
/*****************************多项式元素类***************************
时间:2004-10-26
作者:赵宏涛
功能:定义多项式的元素。实现元素的一些基本操作。
*********************************************************************/
#pragma once
#include "afx.h"
class CPolyItem :
public CObject
{
private:
float coef;
int expn;
public:
BOOL operator >(CPolyItem &Item);
BOOL operator <(CPolyItem &Item);
BOOL operator ==(CPolyItem &Item);
CPolyItem &operator =(const CPolyItem &Item);
CPolyItem operator+(CPolyItem &Item);
CPolyItem operator*(CPolyItem &Item);
CPolyItem(void);
CPolyItem(float fCoef,int iExpn);
CPolyItem(CPolyItem &Item);
~CPolyItem(void);
void SetCoef(float fCoef);
float GetCoef(void);
void SetExpn(int iExpn);
int GetExpn(void);
BOOL IsNULL(void);
CString ToString(void);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -