No encuentro el error.
Publicado por Dennis (63 intervenciones) el 19/11/2020 15:54:10
Hola y saludos.
Me podrían ayudar porque no encuentro el error en la linea 22.
Me podrían ayudar porque no encuentro el error en la linea 22.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <iostream>
#include <conio.h>
using namespace std;
void leer(int* arreglo, int n);
void mostrar(int* arreglo, int n);
int main(){
int leerNumeros = 0, leerLimite = 0;
int* leer;
leer = &leerNumeros;
int* limite;
limite = &leerLimite;
cout<< "NUMEROS: ";
cin>> leerNumeros;
cout<< "LIMITE DE NUMEROS: ";
cin>> leerLimite;
leer(&leer, *limite);
getch();
}
void leer(int* arreglo[], int n){
for(int i = 0; i < n; ++i){
cin>> *arreglo[i];
}
}
void mostrar(int* arreglo[], int n){
for(int i = 0; i < n; ++i){
cout<< *arreglo[i] << " ";
}
}
Valora esta pregunta
0