首页 新闻 会员 周边

这个架构有问题吗?

0
[待解决问题]

include<iostream>

using namespace std;
//fibon_elem()的前置声明(forward declaration).
//目的是让编译器知道这个函数的存在……
bool fibon_elem(int, int&);
int main()
{
int pos;
cout << "Pleace enther a position:";
cin >> pos;
int elem;
if (fibon_elem(pos, elem))
cout << "element #" << pos
<< "is" << elem << endl;
else cout << "Sorry。Could not calculate element #"
<< pos << endl;

}
这段代码为什么会说架构错误?

铭子的主页 铭子 | 初学一级 | 园豆:186
提问于:2019-05-07 20:30

把报错信息一起发出来看看

不如隐茶去 4年前
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册