Tema: Vectores
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/11/2007, 18:33
INVINCIBLE
 
Fecha de Ingreso: noviembre-2007
Mensajes: 37
Antigüedad: 17 años, 4 meses
Puntos: 0
Re: Vectores

- HOLAS BROTHER COMO ANDAMOX!!!
- MIRA ESTE CODIGO..A MI ME COMPILA...POR CASUALIADAD NO TE ABRA FALTADO LAS LIBRERIAS:

#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>

void main()
{
int i,j;
printf("Introduce un numero==> ");
scanf("%d",&i); //CUANDO DECLARAS ENTERO TUS VARIABLES...ES "&i", pero el compilador no lo reconoce...ueno. en realidad para reales puedes kolocar "d" o " f" - double o real y para enteros solo "i"
printf("Introduce otro numero==> ");
scanf("%d",&j);
int vector[i];
int vector1[j];
printf("VECTOR 1:") ;
cout<<" vector[" <<i<<"]";cout<<"\n\n";
printf("VECTOR 2:");
cout<<" vector[" <<j<<"]"; cout<<"\n\n";
system("pause");
}