如下:
#include<iostream.h>
class Box{
private:
int height,widt,depth;
public:
Box(int ht,int wd,int dp){
height=ht;
width=wd;
depth=dp;
}
~Box();
int volume(){
retur

展开全部
收起
4回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • 酥油茶

    19人对此回答表示赞同

    int height,widt,写错了,当然提示找不到,int main(){当然要返回个int了
    展开
    19
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 左鹏

    19人对此回答表示赞同

    前面是widt,后面是width,不统一 cout<return 0;直接返回去掉cout<或者改成调用volume(),然后返回 追问
    展开
    19
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 我爱Grace大姐姐

    7人对此回答表示赞同

    int volume(){
    return height*width*depth;
    }
    改成:
    int volume(){
    return height*widt*depth;
    }
    吧int main(){
    Box thisbox(3,4,5);
    cout<return 0;
    }
    改成int main(){
    Box thisbox(3,4,5);
    retu
    展开
    7
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • Rita

    1人对此回答表示赞同

    第四行widt改下width,cout<return 0;改下就行了,不知道你输出什么,写成cout<<要输出的内容;return 0; 追问
    展开
    1
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部