Beruflich Dokumente
Kultur Dokumente
Unidimensionales (Vectores)
Bidimensionales (matrices)
Multidimensionales
ARREGLOS UNIDIMENSIONALES
tipo
nombre_tipo_array = Arreglo[dimensiones (LILS)] de <tipo de dato>
var
nombre_variable_vector : nombre_tipo_array
Type
Var
nombre_variable_tipo_array: nombre_array
Ejemplo:
type
vector = array[1..10] of integer;
var
notas: vector;
OPERACIONES CON VECTORES
Lectura/Escritura
Asignacin
Recorrido
Ordenacin
Bsqueda
LECTURA / ESCRITURA
leer (V[i] )
Mostrar (V[i])
V[6] 7
1 2 J N
1 M[1,1]
2 M[2,n]
i M[i,j]
m M[m,n]
DECLARACION DE MATRICES
tipo
nombre_tipo_array = Arreglo[dimensiones(1n,1..m)]de <tipo de dato>
var
nombre_variable_matriz : nombre_tipo_array
DECLARACION EN PASCAL
Type
Var
nombre_variable_tipo_array: nombre_array
Ejemplo:
type
matriz = array[1..40, 1..3] of integer;
var
notas_salon: matriz;