Agenda

Páginas: 2 (377 palabras) Publicado: 26 de julio de 2011
#include
#include
#include
#include
#include

struct agenda
{
char nombre[50];
char telefono[25];
char apellido[50];
char email[50];
};

int main(){
int opcion;
do{

structagenda x;



printf(" MARQUE 1 PARA AGREGAR NUEVO USUARIO\n");
printf(" MARQUE 2 PARA AGREGAR VER LOS CONTACTOS EN LISTA\n");
printf("(MARQUE 3 PARA SALIR\n");printf("\n\n\n\nLA OPCION ES: \n\n");
scanf("%i",opcion);
switch (opcion){
case 1:
printf("\n NOMBRE DEL USUARIO : ");
gets(x.nombre);printf("\n APELLIDO DEL USUARIO: ");
gets(x.apellido);
printf("\n NUMERO DEL USUARIO : ");
gets(x.telefono);
printf("\n EMAIL DEL USUARIO : ");gets(x.email);
printf("\n\n DATOS DEL USUARIO (%s) SON: (%s)\n\n", x.nombre, x.apellido, x.telefono, x.email);
break;
case 2:
printf("\n LA LISTA ES : \n");printf(" NOMBRE: %s\n",x.nombre);
printf("APELLIDO: %s\n",x.apellido);
printf("TELEFONO: %s\n",x.telefono);
printf("EMAIL: %s\n",x.email);
break;
default:printf("AL FIN");
break;
}
}while(opcion!=9);

system("PAUSE");
return 0;
}

AGENDA

#include
#include
#include
#include
#include

structagenda
{
char nombre[50];
char telefono[25];
char apellido[50];
char email[50];
};

int main(){
int opcion;
do{

struct agenda x;

printf("\n\tUNIVERSIDAD NACIONAL EXPERIMENTAL DELAS FUERZAS ARMADAS");
printf("\n\t\t INGENERIA DE TELECOMUNICACIONES");
printf("\n\t\t DESCRIPCION: AGENDA");
printf("\n\t\t MATERIA: COMPUTACION AVANZADA");printf("\n\t\t ELABORADO POR: ALVARO BERROTERAN C.I: 16429068\n\n\n\n");



printf(" MARQUE 1 PARA AGREGAR NUEVO USUARIO\n");
printf(" MARQUE 2 PARA AGREGAR...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Agenda
  • agenda
  • Agenda
  • agenda
  • Agenda
  • Agenda
  • agenda
  • Agenda

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS