The intermediate loop termination condition is int f=n+1&&f<5, && has a higher priority, so it is equivalent to int f=(n+1&&f<5). Obviously, f is always 1. If you know the reason, you can see how to change it. You got it.
Thank you for your generous advice, I have found the answer. The reason is that I put an assignment statement where the conditional judgment is. The Android client will not fix the problem, so I would like to thank you all here
First look at your code
The intermediate loop termination condition is
int f=n+1&&f<5
, && has a higher priority, so it is equivalent to int f=(n+1&&f<5). Obviously, f is always 1. If you know the reason, you can see how to change it. You got it.Thank you for your generous advice, I have found the answer. The reason is that I put an assignment statement where the conditional judgment is.
The Android client will not fix the problem, so I would like to thank you all here