搜索
编程论坛
→
开发语言
→
C++论坛
→
『 C++教室 』
→ 【原创】嵌套式for循环的使用
标题:
【原创】嵌套式for循环的使用
取消只看楼主
longyou2011
等 级:
论坛游民
帖 子:46
专家分:19
注 册:2011-1-12
结帖率:
88.24%
楼主
问题点数:0 回复次数:1
【原创】嵌套式for循环的使用
const int min = 10;
const int max = 100;
for(int i=0;i<min;i++)
{
for(int j=0;j<max;j++)
{
}
}
而不应当这样:
const int min = 10;
const int max = 100;
for(int j=0;j<min;j++)
{
for(int i=0;i<max;i++)
{
}
}
前后没有甚么区别?
搜索更多相关主题的帖子:
max
2011-01-28 14:12
longyou2011
等 级:
论坛游民
帖 子:46
专家分:19
注 册:2011-1-12
第
2
楼
得分:0
谢谢各位的回答
2011-01-28 20:00
2
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-331681-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 0.244837 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved