Skip to content

Commit

Permalink
6/12
Browse files Browse the repository at this point in the history
  • Loading branch information
morenaescher committed Dec 7, 2023
1 parent 1bc1902 commit d4ed6ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Proyecto/libreria/clientes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ sClientes* resizeClientes(sClientes* cliente, u_int &tam, u_int nuevoTam)
}
int buscarCliente(sClientes* cliente, str dni, u_int &cant)
{
for(u_int i=0; i<cant; i++)
u_int i;
for(i=0; i<cant; i++)
{
if(cliente[i].dni==dni){
return cliente[i].idCliente;
break;
}
}
//if(i==cant)
if(i==cant)
return -1;
}
eEstado Cuota(sClientes* cliente, str dni, u_int &cant)
Expand Down Expand Up @@ -91,7 +91,7 @@ eAgregar agregarCliente(sClientes* cliente, sClientes nuevoCliente, u_int &cant,
}
if(id == -1) //me aseguro que el cliente ya no este inscripto
{
cliente[cant-1]=nuevoCliente;
cliente[cant]=nuevoCliente;
cant++;
return eAgregar:: ExitoAg;
}
Expand Down
2 changes: 1 addition & 1 deletion Proyecto/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int main()
u_int nuevoTam = cant+30; //para agregar mas espacio hacemos un rezise
cliente = resizeClientes(cliente, cant, nuevoTam);
u_int cantMaxima = nuevoTam;
sClientes ultimo = cliente[(cant)-1];
sClientes ultimo = cliente[cant-1];
u_int cantMaxAsistencia = cantAsistencia+30;
u_int cantMaxInscripciones = (asistencia->cantInscriptos)+30;
int opcion;
Expand Down

0 comments on commit d4ed6ff

Please sign in to comment.