if (stash != 0) {
for (i=1; i<=6; i++) {
a[1][i]=a[1][i]/stash;
}
}
else
{
NSLog (@"Matrix is Not Invertible");
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Matrix is not invertible!" delegate:nil cancelButtonTitle:@"Review Input" otherButtonTitles:nil, nil];
[alert show];
}
I Want to stop the program if the variable "stash" is zero, but i can't use break since it's not in a loop, i wanted to use return but it says that void should not return any value... what should i do to get this working? thanks for all your help....