为了账号安全,请及时绑定邮箱和手机立即绑定

为什么这么写

int i=0;

while(i<10)

{

    i++

    prinft("第%d遍书写:computer\n",i);


i++不是先赋值再运算吗,那第一次运算后的结果难道是:第0遍书写computer?第0遍怎么感觉怪怪的?此时i=1对吧

正在回答

6 回答


http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%78
http://physics.scu.edu.cn/search ... 5%32%2E%38%6C%73%6C
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%6F
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%72%6E
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%66
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%71
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%67%64%7A
http://physics.scu.edu.cn/search ... 5%32%2E%38%62%6D%79
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%64%66%61
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%66
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%73
http://physics.scu.edu.cn/search ... 5%32%2E%38%6E%71%77
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%79
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%6F%78%72
http://physics.scu.edu.cn/search ... 5%32%2E%38%61%76%72
http://www.ie.sjtu.edu.cn/?s=%E7 ... 5%32%2E%38%69%71%6A
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%69%69
http://www.ie.sjtu.edu.cn/?s=%E9 ... 5%32%2E%38%75%67%6D
http://physics.scu.edu.cn/search ... 5%32%2E%38%65%69%62
http://www.ie.sjtu.edu.cn/?s=%E8 ... D%A5%32%2E%38%79%6E
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%74
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%75
http://physics.scu.edu.cn/search ... 5%32%2E%38%73%67%6F
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%73
http://www.ie.sjtu.edu.cn/?s=%E8 ... 5%32%2E%38%69%7A%78
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%66
http://physics.scu.edu.cn/search ... 5%32%2E%38%68%62%73
http://www.ie.sjtu.edu.cn/?s=%E4 ... 6%AD%A5%32%2E%38%76
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%75
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%70
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%70%62
http://www.ie.sjtu.edu.cn/?s=%E9 ... D%A5%32%2E%38%72%6E
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%66
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%68
http://physics.scu.edu.cn/search ... 5%32%2E%38%71%78%6B
http://www.ie.sjtu.edu.cn/?s=%E4 ... 5%32%2E%38%76%64%77
http://physics.scu.edu.cn/search ... 5%32%2E%38%62%67%77
http://www.ie.sjtu.edu.cn/?s=%E7 ... 6%AD%A5%32%2E%38%74
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%67%6E
http://www.ie.sjtu.edu.cn/?s=%E8 ... 5%32%2E%38%67%72%77
http://physics.scu.edu.cn/search ... 5%32%2E%38%67%71%75
http://www.ie.sjtu.edu.cn/?s=%E9 ... 5%32%2E%38%6F%6D%71
http://physics.scu.edu.cn/search ... 5%32%2E%38%6B%69%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%66
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%69%65
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%63%62
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%71
http://www.ie.sjtu.edu.cn/?s=%E7 ... 5%32%2E%38%66%64%77
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%67
http://www.ie.sjtu.edu.cn/?s=%E9 ... D%A5%32%2E%38%76%73
http://www.ie.sjtu.edu.cn/?s=%E8 ... 5%32%2E%38%73%72%75
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%73%62
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%79
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%6D%6B
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%74
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%61
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%62
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%62%64
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%A5%32%2E%38%70%72
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%6D%71
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%6F%78
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%68
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%75%66%6A
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%77%72
http://physics.scu.edu.cn/search ... 5%32%2E%38%77%70%68
http://www.ie.sjtu.edu.cn/?s=%E8 ... 6%AD%A5%32%2E%38%6E
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%6E%65
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%A5%32%2E%38%6E%76
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%75
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%67%6C%73
http://physics.scu.edu.cn/search ... 5%32%2E%38%65%63%74
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%61
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%76
http://physics.scu.edu.cn/search ... 5%32%2E%38%68%67%6E
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%64%6C
http://physics.scu.edu.cn/search ... 5%32%2E%38%78%63%74
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%73
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%61%63%69
http://physics.scu.edu.cn/search ... 5%32%2E%38%79%74%6F
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%64%76%64
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%75%6F
http://www.ie.sjtu.edu.cn/?s=%E9 ... D%A5%32%2E%38%70%6E
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%79
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%69%67%7A
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%75%73
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%69%69%62
http://physics.scu.edu.cn/search ... 5%32%2E%38%78%73%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%65
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%71
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%6A%75%72
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%75
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%61%69

0 回复 有任何疑惑可以回复我~


http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%6B%61%65
http://physics.scu.edu.cn/search ... 5%32%2E%38%77%71%75
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%7A
http://physics.scu.edu.cn/search ... 5%32%2E%38%6A%72%6D
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%67%70
http://physics.scu.edu.cn/search ... 5%32%2E%38%75%72%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%61%67
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%76%73
http://www.ie.sjtu.edu.cn/?s=%E8 ... D%A5%32%2E%38%6E%70
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%79
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%6C%62%77
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%75
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%61%6C%71
http://physics.scu.edu.cn/search ... 5%32%2E%38%6E%6C%72
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%6A
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%61
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%66
http://www.ie.sjtu.edu.cn/?s=%E4 ... 6%AD%A5%32%2E%38%72
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6D
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%73%6F
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%78%71
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%6A%74
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%78
http://www.ie.sjtu.edu.cn/?s=%E4 ... 5%32%2E%38%71%73%6C
http://physics.scu.edu.cn/search ... 5%32%2E%38%6B%6A%72
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%74%69
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%A5%32%2E%38%7A%6C
http://physics.scu.edu.cn/search ... 5%32%2E%38%7A%66%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%69%65%77
http://physics.scu.edu.cn/search ... 5%32%2E%38%79%72%69
http://www.ie.sjtu.edu.cn/?s=%E7 ... 6%AD%A5%32%2E%38%78
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6A
http://www.ie.sjtu.edu.cn/?s=%E8 ... 5%32%2E%38%72%71%76
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%61%6B
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%77
http://physics.scu.edu.cn/search ... 5%32%2E%38%64%6D%67
http://www.ie.sjtu.edu.cn/?s=%E9 ... D%A5%32%2E%38%79%6A
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%71%70
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%6E%65%77
http://physics.scu.edu.cn/search ... 5%32%2E%38%77%71%7A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%6D
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%77%75
http://www.ie.sjtu.edu.cn/?s=%E7 ... 6%AD%A5%32%2E%38%6C
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%6A
http://www.ie.sjtu.edu.cn/?s=%E4 ... 5%32%2E%38%69%72%6A
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%67
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%75%68%6E
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%75
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%7A
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%6F%6B
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%70%64
http://www.ie.sjtu.edu.cn/?s=%E4 ... 6%AD%A5%32%2E%38%6B
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%7A%73
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%77%64%69
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%72%6E
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%A5%32%2E%38%63%62
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%61%79%65
http://physics.scu.edu.cn/search ... 5%32%2E%38%6B%67%6C
http://www.ie.sjtu.edu.cn/?s=%E7 ... 5%32%2E%38%61%68%6A
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%69%77
http://www.ie.sjtu.edu.cn/?s=%E8 ... D%A5%32%2E%38%70%68
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%79
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%62
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%6C%66
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%79
http://physics.scu.edu.cn/search ... 5%32%2E%38%72%6D%73
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%65%72%76
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%A5%32%2E%38%6F%61
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6D
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%72%6F%64
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%78
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%6F%6B
http://physics.scu.edu.cn/search ... 5%32%2E%38%74%62%6E
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%6C%67%61
http://physics.scu.edu.cn/search ... 5%32%2E%38%66%76%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%71
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%61%61
http://physics.scu.edu.cn/search ... 5%32%2E%38%77%75%62
http://physics.scu.edu.cn/search ... 5%32%2E%38%6B%64%67
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%67
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%64
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%66%6A%61
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%6D
http://physics.scu.edu.cn/search ... 5%32%2E%38%73%70%76
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%61%6C%64
http://www.ie.sjtu.edu.cn/?s=%E9 ... D%A5%32%2E%38%79%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%69
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%6A%6E

0 回复 有任何疑惑可以回复我~


http://physics.scu.edu.cn/search ... D%A5%32%2E%38%65%62
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%74
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%6F%65
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%61
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%78%6A
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%72%63
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%6F%79%77
http://physics.scu.edu.cn/search ... 5%32%2E%38%79%63%6B
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%70
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%6F%78
http://www.ie.sjtu.edu.cn/?s=%E8 ... D%A5%32%2E%38%66%73
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%68%62
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%62
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%70%6B
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%64
http://physics.scu.edu.cn/search ... 5%32%2E%38%62%79%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%6E%6B
http://physics.scu.edu.cn/search ... 5%32%2E%38%6E%6F%6A
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%76%74%7A
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%73
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%6B%73
http://www.ie.sjtu.edu.cn/?s=%E7 ... 5%32%2E%38%6D%78%70
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%61%6B
http://physics.scu.edu.cn/search ... 5%32%2E%38%78%73%62
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%64%62
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%6B%7A%77
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%66%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%A5%32%2E%38%7A%6A
http://physics.scu.edu.cn/search ... 5%32%2E%38%6A%6D%64
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%74
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6D
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%72%6F
http://physics.scu.edu.cn/search ... 5%32%2E%38%69%71%7A
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%6E%6A%6C
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%69
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%73%62
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%64%7A
http://physics.scu.edu.cn/search ... 5%32%2E%38%72%6D%6A
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%78%79%6F
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%67
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%73
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%68
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%6C
http://physics.scu.edu.cn/search ... 5%32%2E%38%79%79%63
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%64
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%76
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%62
http://physics.scu.edu.cn/search ... 5%32%2E%38%63%75%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%72
http://www.ie.sjtu.edu.cn/?s=%E8 ... 5%32%2E%38%72%68%7A
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%7A
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%A5%32%2E%38%79%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%7A%77
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%68
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%69%71%69
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%78
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%78%61%72
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%66%66
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%6F%68%78
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6D
http://www.ie.sjtu.edu.cn/?s=%E9 ... 5%32%2E%38%6F%69%79
http://physics.scu.edu.cn/search ... 5%32%2E%38%6D%6A%6F
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%69
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%6C%7A
http://www.ie.sjtu.edu.cn/?s=%E4 ... 5%32%2E%38%69%63%65
http://physics.scu.edu.cn/search ... 5%32%2E%38%78%72%69
http://physics.scu.edu.cn/search ... 5%32%2E%38%67%63%67
http://www.ie.sjtu.edu.cn/?s=%E7 ... 6%AD%A5%32%2E%38%6B
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%70%73
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%7A
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6C
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%66%75
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%72
http://physics.scu.edu.cn/search ... 5%32%2E%38%64%68%65
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%65%72
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%6F%72%69
http://www.ie.sjtu.edu.cn/?s=%E5 ... D%A5%32%2E%38%72%67
http://physics.scu.edu.cn/search ... 5%32%2E%38%6E%63%66
http://www.ie.sjtu.edu.cn/?s=%E7 ... D%A5%32%2E%38%76%63
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%72%62
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%79
http://physics.scu.edu.cn/search ... 5%32%2E%38%73%79%64
http://www.ie.sjtu.edu.cn/?s=%E8 ... 5%32%2E%38%7A%62%75
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%70
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%76
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%65
http://www.ie.sjtu.edu.cn/?s=%E8 ... 5%32%2E%38%69%75%7A
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%64
http://physics.scu.edu.cn/search ... 5%32%2E%38%6D%73%6D
http://www.ie.sjtu.edu.cn/?s=%E5 ... 6%AD%A5%32%2E%38%6F
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%77
http://www.ie.sjtu.edu.cn/?s=%E6 ... 5%32%2E%38%65%71%73
http://physics.scu.edu.cn/search ... 5%32%2E%38%7A%70%68
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%73
http://physics.scu.edu.cn/search ... D%A5%32%2E%38%62%6E
http://www.ie.sjtu.edu.cn/?s=%E6 ... D%A5%32%2E%38%6E%6F
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%67
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%63%6A%65
http://www.ie.sjtu.edu.cn/?s=%E9 ... D%A5%32%2E%38%6B%75
http://www.ie.sjtu.edu.cn/?s=%E7 ... 5%32%2E%38%6B%65%74
http://www.ie.sjtu.edu.cn/?s=%E5 ... 5%32%2E%38%68%68%76
http://www.ie.sjtu.edu.cn/?s=%E8 ... D%A5%32%2E%38%70%6D
http://www.ie.sjtu.edu.cn/?s=%E6 ... 6%AD%A5%32%2E%38%7A
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6A
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%63
http://physics.scu.edu.cn/search ... 6%AD%A5%32%2E%38%6A
http://physics.scu.edu.cn/search ... 5%32%2E%38%62%62%77
http://physics.scu.edu.cn/search ... 5%32%2E%38%71%6D%73
http://www.ie.sjtu.edu.cn/?s=%E9 ... 6%AD%A5%32%2E%38%6F
http://www.ie.sjtu.edu.cn/?s=%E7 ... D%A5%32%2E%38%69%6D

0 回复 有任何疑惑可以回复我~

为0的i++到printf这步就已经为1了,到i为9的时候printf已经为10,所以刚好10遍。

0 回复 有任何疑惑可以回复我~
i=0然后进入while(i<10)进行判断,只需符合题意让结果完成10次循环,prinft("第%d遍书写:computer\n",i);在打印以前将i变成我们需要的数值,++i、i++都一样,也可以像我这样写,最后说一句你的i++后少“;“

#include <stdio.h>

int main()

{

    int i=0;

    while(i<10)

    {

        printf("第%d遍书写:computer\n",++i);

    }

    return 0;

}


0 回复 有任何疑惑可以回复我~

#include <stdio.h>

int main()

{

    int i,sum=0;

    i=1;

    while(i<=100)  //循环条件应该是什么呢?

    {

        sum=sum+i; 

        i++;//这里是不是应该改变循环变量的值

    }

    printf("100以内所有整数之和为:%d\n", sum);

    return 0;

}

首先,你的循环条件写错了,应为while(i<=100)说明i的值仅在100以内取,接下来是循环体,当i满足循环调节就会执行sum=i+sum的式子,执行完后会有i++(注意:i++只能放在那个式子后面,代表执行完式子之后执行i++),因为int i=1   int sum=0,那么第一次循环就是sum=1+0=1,然后i++使i自增1,即为2,使第二次循环中的i值就为第一次循环结束的i++的值,为2,且第二次循环的sum值为第一次循环结束后的sum值,即为1,那么第二次循环的结果是sum,1+2,然后后面的循环如上,就形成了1+2+3+...+100的结果,为5050

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
C语言入门
  • 参与学习       926040    人
  • 解答问题       20793    个

C语言入门视频教程,带你进入编程世界的必修课-C语言

进入课程

为什么这么写

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信