📄 e-4-4.txt
字号:
// E-4-4-1.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "4-4.h"
using namespace std;
void Cube::count(){
cout<<"请输入边长:";
cin>>l;
a=l*l*6;
v=l*l*l;
}
void Cube::display(){
cout<<"The area of the cube is "<<a<<endl;
cout<<"The volume of the cube is "<<v<<endl;
}
int main()
{ Cube k;
k.count();
k.display();
cout<<"The result is what you see"<<endl;
system("pause");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -