polylist.h
来自「关于多项式相加的小程序」· C头文件 代码 · 共 35 行
H
35 行
// PolyList.h: interface for the CPolyList class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_POLYLIST_H__92324553_C061_4014_9786_7D2D67AB2207__INCLUDED_)
#define AFX_POLYLIST_H__92324553_C061_4014_9786_7D2D67AB2207__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "String.h"
class CPolyList : public CObject
{
public:
typedef struct item
{
int coef;
int exp;
};
struct pnode
{
item node;
pnode *next;
}*head;
pnode *p,*q;
public:
CPolyList();
virtual ~CPolyList();
void InsertItem(int coef, int exp);
CString ShowPoly();
};
#endif // !defined(AFX_POLYLIST_H__92324553_C061_4014_9786_7D2D67AB2207__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?