#include <algorithm> #include <iostream> using namespace std; int search_value,pause, ia[9]= {47,29,37,23,11,7, 5, 31, 41}; void ff(); int main() { while(1) ff(); return 0; } void ff() { cout<<"input a number you need search:"<<endl; cin>>search_value; int * presult = find(&ia[0],&ia[9],search_value); cout<<"number "<<search_value<<(presult == &ia[9]? " yes ":" no")<<endl; }