?? 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 + -