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

📄 spreadsheet.h

📁 C++高级编程这本书所附的源代码
💻 H
字号:
// Spreadsheet.h#include "SpreadsheetCell.h"class SpreadsheetApplication; // forward declarationclass Spreadsheet{ public:  Spreadsheet(int inWidth, int inHeight,	      const SpreadsheetApplication& theApp);  Spreadsheet(const Spreadsheet& src);  ~Spreadsheet();  Spreadsheet& operator=(const Spreadsheet& rhs);  void setCellAt(int x, int y, const SpreadsheetCell& cell);  SpreadsheetCell getCellAt(int x, int y);  int getId();  // Doesn't work in Microsoft Visual Studio 6  static const int kMaxHeight = 100;  static const int kMaxWidth = 100; protected:  bool inRange(int val, int upper);  void copyFrom(const Spreadsheet& src);  int mWidth, mHeight;  int mId;  SpreadsheetCell** mCells;  const SpreadsheetApplication& mTheApp;  static int sCounter;}; 

⌨️ 快捷键说明

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