Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 9, 2022 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/89dbcf53b440efe31602b7f3ebb4d44f to your computer and use it in GitHub Desktop.
Save parzibyte/89dbcf53b440efe31602b7f3ebb4d44f to your computer and use it in GitHub Desktop.
void listarUsuarios(struct NodoDeCliente *nodo)
{
imprimirLineaSeparadora();
printf("|%*s|%*s|%*s|%*s|%*s|%*s|%*s|\n",
LONGITUD_TABLA, "Nombre", LONGITUD_TABLA, "Identificacion", LONGITUD_TABLA, "Correo", LONGITUD_TABLA, "Palabra secreta", LONGITUD_TABLA, "No. Cuenta", LONGITUD_TABLA, "Saldo", LONGITUD_TABLA, "Habilitado");
imprimirLineaSeparadora();
while (nodo != NULL)
{
printf("|%*s|%*s|%*s|%*s|%*s|%*lf|%*s|\n",
LONGITUD_TABLA, nodo->nombre, LONGITUD_TABLA, nodo->identificacion, LONGITUD_TABLA, nodo->correoElectronico, LONGITUD_TABLA, nodo->palabraSecreta, LONGITUD_TABLA, nodo->numeroCuenta, LONGITUD_TABLA, nodo->saldo, LONGITUD_TABLA, nodo->habilitado == ESTADO_HABILITADO ? "Si" : "No");
imprimirLineaSeparadora();
nodo = nodo->siguiente;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment