请教一个问题,为什么会"can't execute it"?

yanghaibo_tm yanghaibo_tm 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
源代码如下:
#include<iostream.h>

class TEST{
public:
TEST(int i)
{
cout<<"Constructing with"<<i<<".\n";
value=i;
return;
}
~TEST()
{ cout<<"destructing.\n:";
return;
}
int get()
{
return value;
}

private:
int value;
};

void dispiay(Test &obj)
{
cout<<"Display with"<<obj.get()<<".\n";
return;
}

int main()
{
TEST explorer(5);
display(explorer);
return 0;
}
请各位大虾指教!!
...全文
评论 10
收藏 已收藏
分享
返回顶部
yanghaibo_tm
C语言 70,040 成员 243,237 内容