hugeint1.h
来自「经典vc教程的例子程序」· C头文件 代码 · 共 22 行
H
22 行
// Fig. 8.8: hugeint1.h
// Definition of the HugeInt class
#ifndef HUGEINT1_H
#define HUGEINT1_H
#include <iostream.h>
class HugeInt {
friend ostream &operator<<( ostream &, HugeInt & );
public:
HugeInt( long = 0 ); // conversion/default constructor
HugeInt( const char * ); // conversion constructor
HugeInt operator+( HugeInt & ); // add another HugeInt
HugeInt operator+( int ); // add an int
HugeInt operator+( const char * ); // add an int in a char *
private:
short integer[30];
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?