cgeneric.h
来自「虚函数」· C头文件 代码 · 共 20 行
H
20 行
#ifndef CGENERIC_H
#define CGENERIC_H
#include <iosfwd>
using namespace std;
class CGeneric
{
friend ostream &operator<<(ostream &stream,CGeneric const &loan);
public:
CGeneric(double,int,double);
virtual ~CGeneric() {}
virtual double getMonthlyPayment() const;
protected:
double principal;
int length;
double const rate;
};
#endif CGENERIC_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?