65,211
社区成员
发帖
与我相关
我的任务
分享运行的错误说是:fatal error C1083: Cannot open include file: 'cuboid.h': No such file or directory
//cubodi.h
class cuboid
{
public:
void set();
int jisuan();
void show();
private:
int length;
int width;
int height;
};
class cuboid
{
public:
void set();
int jisuan();
void show();
private:
int length;
int width;
int height;
};
#include <iostream>
#include "cuboid.h"
void cuboid::set()
{
cout << "intput length,width,height:" << endl;
cin << length << width << height;
}
int cuboid::jisuan()
{
return(length*width*height);
}
void cuboid::show()
{
cout << jisuan() << endl;
}
#include <iostream>
#include "cuboid.h"
using namespace std;
int main()
{
cuboid box1;
box1.set();
box1.jisuan();
box1.show();
}
//cubodi.h
class cuboid
{
public:
void set();
int jisuan();
void show();
private:
int length;
int width;
int height;
};