ok, I am after looking Every Where and can't seem to find any code on this.
how do i stop a user from Entering in the Same number twice ?
For Student ID, i dont want user to be able to Enter the Same Student ID for different names.
how do i stop a user from Entering in the Same number twice ?
Code:
while((cout<<"Enter Student Number: ")&&(!(cin>>record[n].student_number)||record[n].student_number<0)){
cout<<"Invalid Input!"<<endl;
cin.clear();
cin.ignore(1000,'\n');
Comment