WEO華特艾斯聯盟's Archiver
論壇
›
C & C + +空間
› 算正方體面積
palm0919
發表於 2007-5-18 11:52:18
算正方體面積
#include<iostream>
using namespace std ;
#define cube(x) x*x*x
int main()
{int a;
cout<<"輸入正方體的邊長";
cin>>a;
cout<<"正方體體積為"<<cube(a+1);
system("PAUSE");
return 0 ;
}
頁:
[1]
查看完整版本:
算正方體面積