Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 9, 2022 16:41
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/3ff3aa2b092684eb3ba1af233a76eeb9 to your computer and use it in GitHub Desktop.
Save parzibyte/3ff3aa2b092684eb3ba1af233a76eeb9 to your computer and use it in GitHub Desktop.
void menuCrearUsuario(struct NodoDeCliente **nodo)
{
char nombre[MAXIMA_LONGITUD_CADENA] = "";
char identificacion[MAXIMA_LONGITUD_CADENA] = "";
char correoElectronico[MAXIMA_LONGITUD_CADENA] = "";
char palabraSecreta[MAXIMA_LONGITUD_CADENA] = "";
char numeroCuenta[MAXIMA_LONGITUD_CADENA] = "";
leerCadenaYAsegurarseDeQueNoEstaVacia(nombre, "Ingrese el nombre: ");
leerCadenaYAsegurarseDeQueNoEstaVacia(identificacion, "Ingrese la identificacion: ");
leerCorreoElectronico(correoElectronico);
leerPalabraSecreta(palabraSecreta);
rellenarCadenaConNumerosAleatorios(numeroCuenta, CANTIDAD_CIFRAS_NUMERO_CUENTA);
agregarNodoALista(nodo, nombre, identificacion, correoElectronico, palabraSecreta, numeroCuenta, SALDO_POR_DEFECTO, ESTADO_HABILITADO);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment