polyitem.h
来自「数据结构的一个试验」· C头文件 代码 · 共 34 行
H
34 行
/*****************************多项式元素类***************************
时间: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 + =
减小字号Ctrl + -
显示快捷键?