Unhandled exception at 0x00412016 in finalfinal.exe: 0xC0000005: Access violation reading location 0x00133000.
the code that executes is this:
cout << "ingrese el primer valor de la suma\n\n";
cin >> primerRomano;
romanoReal(primerRomano,numeroReal);
realReal(numeroReal);<<<< the error goes here
this is the method realReal
int realReal(int arregloReal[])
{
int numeroFinal = 0;
for(int i=0;i<300;i++)
{
int numeroTemporal =0;
for(int j = i++;i<=300;j++)
{
int numero1 = arregloReal[i];
int numero2 = arregloReal[j]; >>>>>>>> an arrow appears in this line
if(numero1 < numero2)
{
numeroTemporal = numero2-numero1;
numeroFinal += numeroTemporal;
}
else if(numero1 > numero2)
{
numeroTemporal = numero1 + numero2;
numeroFinal +=numeroTemporal;
}
}
}
return numeroFinal;
}
so i've done pretty much everything i know to solve this error but no answer :S
plz help!!!
EDIT: Removed the "HEEEEEEEEELP", that isn't going to get you helped any faster

New Topic/Question
Reply



MultiQuote



|