#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