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

📄 grid.h

📁 比较简陋的数据库应用,唯一能看的就是对ODBC的封装...
💻 H
字号:
#ifndef _GRID_H
#define _GRID_H

#include <iostream>
#include "String.h"


class GridInfo
{
public:
	GridInfo(int n = 1);
	~GridInfo();

	String *m_Info;
	int num;

//--------------------------------------
private:
	GridInfo(const GridInfo&);
	GridInfo& operator=(const GridInfo&);
};

class Grid
{
public:
	Grid();
	~Grid();

	void SetWidth(int nWidth);
	void SetHeight(int nHeight);
	void SetGridInfo(const GridInfo* agi);

	int GetWidth() const;
	int GetHeight() const;
	GridInfo* GetInfo() const;

//	friend std::ostream& operator<<(std::ostream& out, const Grid& gr);

private:
	GridInfo * gi;
	int width;
	int height;
	int minWidth;
	int minHeight;

//-----------------------------------
	Grid(const Grid&);
	Grid& operator=(const Grid&);
};


#endif

⌨️ 快捷键说明

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