Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/04/2016, 20:40
Avatar de cofiykiki
cofiykiki
 
Fecha de Ingreso: abril-2016
Mensajes: 2
Antigüedad: 8 años, 1 mes
Puntos: 0
Arreglos unidimensionales

llevo horas tratando de compilar :(

#include <conio2.h>
#include <stdio.h>
#include <math.h>

int i, n=0, op;
void opcion1(); void opcion2();

main()
{
gotoxy (10,5); printf ("MENU DE VECTORES");
gotoxy (10,7); printf ("1.- LECTURA DEL VECTOR A");
gotoxy (10,8); printf ("2.- GENERA VECTOR B");

do
{
switch(n){

case 1: opcion1();break;
case 2: opcion2();break;
}

}

while(n<100);

void opcion1();
{
clrscr();
gotoxy (10,10); printf ("1.- LECTURA DEL VECTOR A");
gotoxy (10,11); printf ("¿CUAL ES EL TAMAÑO DEL VECTOR?");
scanf("%d", &n);
for(i=3; i<=n; i++)
{
scanf("%d", &A[3]);
}
}
getche();
}