Can someone help me with this problem
I've been trying to do an else statement but it doesn't work
here is the code....
for(int c=0;c<student_max;c++){
if(search_id==id[c]){
location=binary_search(id,student_max,search_id);
cout<<"Student ID \tTotal \tGrade"<<endl;
cout<<"-----------------------------"<<endl;
cout<<search_id<<" \t\t"<<total[location]<<" \t"<<determine_grade(total[location])<<endl;
//break;
}
//}
else{
cout<<"Incorrect id entered"<<endl;
break;
}
}
}