#include using namespace std;class Box{public:Box(int a,int
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/10/01 07:35:21
#include
using namespace std;
class Box
{
public:
Box(int a,int b,int c)
{
height=a;
width=b;
length=c;
}
Box(const Box &b)
{
height=b.height;
width=b.width;
length=b.height;
}
int volume()
{
return(height*width*length);
}
private:
int height;
int width;
int length;
};
int main()
{
Box box1(15,30,25);
cout
using namespace std;
class Box
{
public:
Box(int a,int b,int c)
{
height=a;
width=b;
length=c;
}
Box(const Box &b)
{
height=b.height;
width=b.width;
length=b.height;
}
int volume()
{
return(height*width*length);
}
private:
int height;
int width;
int length;
};
int main()
{
Box box1(15,30,25);
cout
Box(const Box &b)
{
height=b.height;
width=b.width;
length=b.height; //这里应该是length=b.length
}
{
height=b.height;
width=b.width;
length=b.height; //这里应该是length=b.length
}
#include using namespace std;class Box{public:Box(int a,int
#include using namespace std; class blah{ public:static int
#include using namespace std; class A{ public:A *next; int d
#include using namespace std; class myclass { int a,b; stati
#include using namespace std; class A { public:A(){cout
#include using namespace std; int main() { cout
#include using namespace std;void huiwen(int n);int main(){\
#include using namespace std; int main() { int a,b,c,d; a=c=
#include using namespace std; int main() { int a,b,c; a=3; i
#include int main() { using namespace std; int a=3,b=7,c; c=
C++进制转换问题#include using namespace std;int F(int,int);int mai
#include using namespace std; int main() {char c1='a',c2='b'