是否有可能做循环落后? [英] Is it possible to do for loop backward?

查看:143
本文介绍了是否有可能做循环落后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  for(int i = 10)我发现在Objective C中做这件事是不正确的。 ; i< = 0; i--)


解决方案

您已经指定的条件是错误的,以下是正确的。

  for(int i = 10; i> = 0;我 - )


I found it not correct to do this in Objective C. So anything wrong here?

for (int i=10; i<=0; i--)

解决方案

The condition you've specified is wrong, following is the correct one.

for (int i=10; i>=0; i--)

这篇关于是否有可能做循环落后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆