给定长方体的长、宽、高,求出长方体的体积。
5 4 3
5.00 4.00 3.00 60.00
#include<iostream> #include<iomanip> using namespace std; class Box { private: double l,w,h; public: friend ostream& operator<<(ostream& output,Box b1); friend istream& operator>>(istream& intput,Box& b1); }; //pdsu-c1 //pdsu-c1 int main() { Box b1; cin>>b1; cout<<b1; return 0; }
Anything about this OnlineJudge, Please Contact Administrator. Click add QQ
OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap
Copyright 2016 ACM算法攻关部cnt: 9264
关于网站改版