📄 spreadsheetcellarraynodefault.cpp
字号:
#include "SpreadsheetCell.h"int main(int argc, char** argv){ // Comment out these next two lines to test the third line SpreadsheetCell cells[3]; // FAILS compilation without a default constructor SpreadsheetCell* myCellp = new SpreadsheetCell[10]; // also FAILS // This line compiles without a default constructor SpreadsheetCell cells[3] = {SpreadsheetCell(0), SpreadsheetCell(23), SpreadsheetCell(41)}; return (0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -