📄 quantic.h
字号:
// Quantic.h: interface for the CQuantic class.
//
//////////////////////////////////////////////////////////////////////
#include "CListMZ.h"
#include "CListMZ.cpp"
#if !defined(AFX_QUANTIC_H__DAFEF758_0719_4294_B678_FA53E14A73FC__INCLUDED_)
#define AFX_QUANTIC_H__DAFEF758_0719_4294_B678_FA53E14A73FC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct _Element{
int Modulus;
int Power;
}ELEMENT;
class CQuantic
{
public:
CQuantic();
CQuantic(CQuantic & Quantic);
~CQuantic();
bool SetName(char strName[]);
void GetName(char strName[]);
bool IsEqual(char strName[]);
bool AddElement(int Modulus,int Power);
bool AddQuantic(CQuantic & quantic,int modulus=1);
bool AddString(char String[]);
bool DeleteQuantic();
double Calculate(double X);
void Display();
//bool Check(char String[]);
private:
bool Check(char String[]);
CListMZ<ELEMENT> m_clList;
char * m_strName;
};
#endif // !defined(AFX_QUANTIC_H__DAFEF758_0719_4294_B678_FA53E14A73FC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -