jeudi 20 juin 2019

Check the input value in Binary file (C++)

I have to create and record (write) information of each new student in the binary file (Class Student including ID, name, class...) for C++. My question is: How can i make a programme not accepting inserted ID Student (when using cin >> ID) which is the same as the previous created ID students in order to make sure that ID student is always unique.

Thanks all.

Aucun commentaire:

Enregistrer un commentaire