Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool VendedorManager::LegajoRepetido(int idLegajo){
- Vendedor registro;
- int cantidad=_archivo.ContarRegistro();
- for(int i = 0; i < cantidad; i++){
- registro=_archivo.leerRegistro(i);
- if(registro.getNroLegajo()== idLegajo){
- return true;
- }
- }
- return false;
- }
- bool PersonaManager::DniRepetido(long long idPersona){
- Vendedor registro;
- VendedorArchivo va("Vendedores.dat");
- int cantidad=va.ContarRegistro();
- for(int i = 0; i < cantidad; i++){
- registro=va.leerRegistro(i);
- if(registro.getDni() == idPersona){
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment