here is my code:
//if any of errprLists is not equal to 0, then initialWieght equals newWeight
if(errorList[0]!=0 || errorList[1]!=0 || errorList[2]!=0 || errorList[3]!=0)
{
for(int i=0; i<row; i++)
{
initialWeight[i] = newWeight[i];
}
}
//break the loop if all errors equal 0
//---------------------------------------------------------------------------
else if(errorList[0]==0 && errorList[1]==0 && errorList[2]==0 && errorList[3]==0)
break;
what i want to do is to shorten those errorLists, but i dont know how to do it
when i write
for(int j=0; j<errorList.length; j++){
if(errorList[j]!=0) ....
}
it doesnt work
please help
thanks
:(