spreadsheettest.cpp

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

CPP
25
字号
#include "Spreadsheet.h"#include <iostream>using namespace std;class SpreadsheetApplication {};int main(int argc, char** argv){  SpreadsheetApplication theApp;  Spreadsheet s1(theApp);  Spreadsheet s2(theApp, 5);  Spreadsheet s3(theApp, 5, 6);  Spreadsheet::SpreadsheetCell c1(4), c2(5);  Spreadsheet::SpreadsheetCell c3(c1);  c2 = c3;  cout << c1.getValue() << endl;  s2.getId();  return (0);}

⌨️ 快捷键说明

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