#include<iostream>
using namespace std;extern bool fibon_elem( int , int &);int main()
{
int pos, elem;
bool more =true;
char ch; while( more ){
cout << "please enter a position:";
cin >> pos; if( fibon_elem( pos, elem) )
cout << "The element is " << elem <<endl;
else cout << "Sorry, It's wrong " <<endl;
cout << " Are you continue 'y' or 'no' ? ";
cin >> ch; if(ch == 'y') more = false;
}
return 0;
}--------------------Configuration: Exercise2_1 - Win32 Debug--------------------
Linking...
Exercise2_1.obj : error LNK2001: unresolved external symbol "bool __cdecl fibon_elem(int,int &)" (?fibon_elem@@YA_NHAAH@Z)
Debug/Exercise2_1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.Exercise2_1.exe - 2 error(s), 0 warning(s)
------------------------------------我用的vc6.0
using namespace std;extern bool fibon_elem( int , int &);int main()
{
int pos, elem;
bool more =true;
char ch; while( more ){
cout << "please enter a position:";
cin >> pos; if( fibon_elem( pos, elem) )
cout << "The element is " << elem <<endl;
else cout << "Sorry, It's wrong " <<endl;
cout << " Are you continue 'y' or 'no' ? ";
cin >> ch; if(ch == 'y') more = false;
}
return 0;
}--------------------Configuration: Exercise2_1 - Win32 Debug--------------------
Linking...
Exercise2_1.obj : error LNK2001: unresolved external symbol "bool __cdecl fibon_elem(int,int &)" (?fibon_elem@@YA_NHAAH@Z)
Debug/Exercise2_1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.Exercise2_1.exe - 2 error(s), 0 warning(s)
------------------------------------我用的vc6.0
解决方案 »
- 连接远程服务器读取数据库用什么方法?
- CFormView,加载了manifest后,在xp下滚动条为什么还是灰色的,而不是蓝色?即是win2000样式。
- 如何对CComboBox的edit control设置ES_NOHIDESEL?
- precompiled header
- 如何在InitInstance调用函数
- 用什么方法来记录两个通讯消息应答所花费的时间?
- 小问题,大侠帮忙!
- 怎样在服务端拒绝客户端的连接
- 菜鸟求助:用VC编一个小型图形处理程序
- 那里又可以操作文件的控件啊?在线等待。
- (菜鸟问题)一个基于对话框的MFC应用程序中如何防止父窗口上画的图形被子窗口破坏?
- Visual C++6.0,CListCtrl控件,显示不了图标
--------------------------------
这个怎么连?
比如文件头部加入:#pragma comment( lib, "***.lib" )
fibon_elem是个泛型算法,