array3.h
来自「经典vc教程的例子程序」· C头文件 代码 · 共 20 行
H
20 行
// Fig. 21.11: array3.h
// Simple class Array (for integers)
#ifndef ARRAY1_H
#define ARRAY1_H
#include <iostream.h>
class Array {
friend ostream &operator<<( ostream &, const Array & );
public:
explicit Array( int = 10 ); // default constructor
~Array(); // destructor
private:
int size; // size of the array
int *ptr; // pointer to first element of array
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?