using namespace std;
const int Max=5;
int fill_array(double ar[],int limit);
void show_array(const double ar[],int n);
void revalue(double r,double ar[],int n);
int main()
{
double properties[Max];
int size=fill_array(properties,Max);
show_array(properties,size);
if(size>0);
{ cout<<"Enter revaluation factor:";
double factor;
while(!(cin>>factor))
{cin.clear();
while(factor!='\n')
continue;
cout<<"Bad input; input proceess terminatedd.\n";
}
revalue(factor,properties,Max);
show_array(properties,Max);
}
cout<<"Done.\n";
cin.get();
cin.get();
return 0;
}
int fill_array(double ar[],int limit)
{
double temp;
int i;
for(i=0;i
if(!cin)
{
cin.clear();
while(cin.get()!='\n')
continue;
cout<<"Bad input process terminated.\n";
break;
}
else if(temp<0)
break;
ar[i]=temp;
}
return i;
}
void shou_array(const double ar[],int n)
{
for(int i=0;i
cout<
}
void revalue(double r,double ar[],int n)
{
for (int i=0;i
}
程序清单7_7.obj : error LNK2001: unresolved external symbol "void __cdecl show_array(double const * const,int)" (?show_array@@YAXQBNH@Z)
Debug/程序清单7_7.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
可以编译 但是运行的时候就有一条错误 求大神指导指导