📄 prog12_05.cpp
字号:
// Program 12.5 Creating a copy of an object File: prog12_05.cpp
#include <iostream>
#include "Box.h"
using std::cout;
using std::endl;
int main() {
cout << endl;
Box firstBox(2.2, 1.1, 0.5);
Box secondBox(firstBox);
cout << "Volume of first box = "
<< firstBox.volume()
<< endl;
cout << "Volume of second box = "
<< secondBox.volume()
<< endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -