似乎我这个错误的结束,当我试图编译其中包含一个线性搜索功能错误:控制可以达到非void函数
bool search(int value, int values[], int n)
{
// TODO: implement a searching algorithm
for(int d = 0;d<n;d++){
if(n<0){
return false;
}
else if(values[d]==value){
return true;
}
else{
return false;
}
}
}
什么是错我的代码的声明的C文件?请帮忙。
看到我的回答,他们是代码中的一些其他问题。 – NetVipeC 2014-09-04 15:55:29