C。。新手C++问题。。求大神。。

jiaoyongqing 2012-03-24 03:08:21
#include<iostream>
using namespace std;
class cuboid
{
public:
void cuboid_input();
public:
double lenth;
double width;
double height;
double volumes;
};
void cuboid::cuboid_input()
{
cout<<"lenth:";
cin>>lenth;
cout<<"width:";
cin>>width;
cout<<"height:";
cin>>height;
}
int main()
{
cuboid volume;
volume.cuboid_intput();/*error C2039: 'cuboid_intput' : is not a member of 'cuboid......是怎么回事啊?*/
return 0;
}
...全文
29 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jiaoyongqing 2012-03-24
  • 打赏
  • 举报
回复
谢谢了、、、呵呵
justkk 2012-03-24
  • 打赏
  • 举报
回复
细心点啊

cuboid_intput ==> cuboid_input
aijianmeng 2012-03-24
  • 打赏
  • 举报
回复
cuboid_input()与cuboid_intput();自己看看

69,369

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧