e-4-4.txt
来自「最后声明」· 文本 代码 · 共 29 行
TXT
29 行
// 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 + =
减小字号Ctrl + -
显示快捷键?