在这个for循环中,i的值很大! [英] The value of i is huge in this for loop !?

查看:134
本文介绍了在这个for循环中,i的值很大!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么''我'那么大?我需要它是1,2,3 ......

Why is ''i'' so big? I need it to be 1,2,3...

展开 | 选择 | Wrap | 行号

推荐答案

我不知道这样的语法。
I am not aware of such syntax.
展开 | 选择 < span class =codeDivider> | Wrap | 行号


如果我没记错的话,无论C开头都没有实例化所有变量它被宣布的地方?这可能是导致它的原因。
If I remember correctly, doesn''t C instantiated all variables at the beginning regardless of where it was declared? That''s probably what''s causing it.


到Dheeraj Joshi:

打印当前数字(n)及其值,例如:< br $> b $ b n1 = 1

n2 = 2

...


到兔子:

如何解决?

通常i的值应为1,2,3,...;如果你测试它会得到大数字,但如果你输入3循环3次,程序运行完美吗?!?!我很迷惑 ?!如果我不清楚,请测试一下......
to Dheeraj Joshi:
It prints the current number(n) and its value, example:
n1=1
n2=2
...

to Rabbit:
how can I fix it???
normally the value of i should be 1,2,3,...; if you test it you get big numbers, but the programs runs perfectly if you enter 3 it loops 3 times ?!?! I am confused ?! Please test it if I''m not clear...


这篇关于在这个for循环中,i的值很大!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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