spreadsheetcell.h

来自「C++高级编程这本书所附的源代码」· C头文件 代码 · 共 22 行

H
22
字号
#include <string>using std::string;class SpreadsheetCell{ public:  SpreadsheetCell();  SpreadsheetCell(double initialValue);  SpreadsheetCell(string initialValue);  void setValue(double inValue);  double getValue();  void setString(string inString);  string getString(); protected:  string doubleToString(double inValue);  double stringToDouble(string inString);  double mValue;  string mString;};

⌨️ 快捷键说明

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