Home > Back-end >  A student management system, how to bulk delete student information?
A student management system, how to bulk delete student information?

Time:04-23

Made up a student management system, I want to achieve to delete function is: continuous input several student id , with a space interval, enter end , and delete information, who can teach how to change?

CodePudding user response:

The key is how data is stored

CodePudding user response:

The
reference 1/f, Simple, Soft reply:
the key is how data is stored

Data in the cache, if I input to delete a few students first, and then enter the student id, can realize batch delete, but I don't want to input: to delete a few students, and then deleted, want to directly enter the students want to remove student id to bulk delete, is this meaning,

CodePudding user response:

The same way to delete

CodePudding user response:

reference 3 floor is Simple - Soft reply:
delete way as

Why do the same? Know that fixed to delete the number of students in the cycle number without judgment, I want to delete don't know the number of students to achieve

CodePudding user response:

Are not in accordance with the student number deleted? So what is your storage structure

CodePudding user response:

Simple reference 5 floor - Soft reply:
is not in accordance with the student number deleted? So what are your storage structure
according to the student id delete, a student's student id, name, have deleted a few course grades, delete the student in the class information,

CodePudding user response:

Not that complicated

 int b; 
char c;
While ((c=getchar ())! )
='\ n'{
Cin. Putback (c);
Cin & gt;> b;
Cout & lt;
}

CodePudding user response:

In addition you are using c + +, can use vector< completely; Int> , it is not necessary to use array

CodePudding user response:

refer to 7th floor truth is right or wrong response:
less complex

 int b; 
char c;
While ((c=getchar ())! )
='\ n'{
Cin. Putback (c);
Cin & gt;> b;
Cout & lt;
}

Use getchar obtain character input number again? Unable to run

CodePudding user response:

references 9 f qq_48978826 response:
Quote: refer to 7th floor truth is right or wrong response:
less complicated

 int b; 
char c;
While ((c=getchar ())! )
='\ n'{
Cin. Putback (c);
Cin & gt;> b;
Cout & lt;
}

Use getchar obtain character input number again? Unable to run

CodePudding user response:

well, can be alone, but in my this del function, the runtime to skip this function,
  • Related