elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Introducción a Git (Primera Parte)


  Mostrar Mensajes
Páginas: [1]
1  Programación / Programación C/C++ / MENU CON PROCEDIMIENTOS en: 12 Diciembre 2010, 14:40 pm
HOLA AMIGOS, URGENTE AYUDA.

TENGO UN EXAMEN FINAL Y..
ME PIDEN QUE LEA UN VECTOR Y LUEGO QUE INGRESE A UN MENU Y ME PIDE 1.- 1.- 1.- ORDENAR, 2.- ELIMINAR, 3.- ETC.

COMO LO HAGO?
TENGO AVANZADO ESTO.
 
Código
  1. #include "stdafx.h"
  2. #include <conio.h>
  3. #include <stdio.h>
  4.  
  5. //Ingresar Elementos
  6. void Leer (int n,float x[])
  7. {
  8. int i;
  9. for(i=1;i<=n;i++)
  10. {
  11. printf("Elemento Nro [%d] :",i);
  12. scanf("%d",&x[i]);
  13. }
  14. }
  15.  
  16.  
  17. //Programa Principal
  18. int _tmain(int argc, _TCHAR* argv[])
  19. {
  20. int n,opcion;
  21. float A[50];
  22. printf("Numero de Elementos a Ingresar :");
  23. scanf("%d",&n);
  24. printf("Ingrese Elementos\n");
  25.  
  26. //AYUDA EN ESTA PARTE
  27. //opcion=menu();
  28. //switch (opcion)
  29. //{
  30. //1 : ORDENAR
  31. //2 : ELIMINAR
  32. //.
  33. // .
  34. //.
  35. //3 : SALIR
  36. //}
  37.  
  38.  
  39. // mostrar(n,A);
  40. getch();
  41. }

SALUDOS KOKONUT
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines