root.h
来自「多项式与常数和多项式之间的加减乘除等运算」· C头文件 代码 · 共 43 行
H
43 行
// root.h: interface for the root class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ROOT_H__7CFD1EA1_016B_11D6_A8DC_D2C4F7FBA735__INCLUDED_)
#define AFX_ROOT_H__7CFD1EA1_016B_11D6_A8DC_D2C4F7FBA735__INCLUDED_
#include "complex.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <string>
using namespace std;
class root
{
public:
//constructors and destructors
root();
virtual ~root();
//accessor functions
void setRoot(int value, complex cplx);
void setNumRoots(int value);
void setMsg(string msg);
string getMsg();
int getNumRoots();
complex getRoot(int value);
//utility functions
void print();
private:
string message;
int numRoots;
complex roots[2];
};
#endif // !defined(AFX_ROOT_H__7CFD1EA1_016B_11D6_A8DC_D2C4F7FBA735__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?