need help in a search for program - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

need help in a search for program

the program gives error i dont know why cuz im a bit new heres the code


void people(){
int Found=-1;
int i=0;

printf("Enter a name"); scanf("s",Search);
while((Found <=0) && (i<NO))
{
if (strcmp(Search,Patient[i].Name)!=0){{
Found=i;
}

i=i+1;
}
return Found;
}


i is the count for array NO is the number of counts
Help me if u can thx
Sign In or Register to comment.