⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pointerdataclass.h

📁 data+structures+using+c的源码
💻 H
字号:
class pointerDataClass
{
public:
    void print() const;
		//Function to output the value of x and
		//the value of the array p
    void setData();
		//Function to input data into x and
		//into the array p
    void destroyP();
		//Function to deallocate the memory space 
		//occupied by the array p

    pointerDataClass(int sizeP = 10);
		//constructor 
		//Creates an array of the size specified by the
		//parameter sizeP; the default array size is 10

    ~pointerDataClass();
		//destructor
		//Deallocates the memory space occupied by the array p

    pointerDataClass (const pointerDataClass& otherObject);
		//copy constructor

private:
    int x;
    int lenP;
    int *p;		//pointer to an int array
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -