【发布时间】:2015-12-07 14:55:57
【问题描述】:
在这个“三重”嵌套 for 循环程序中,ctr 变量没有递增。这是为什么呢?
// Example program
#include <iostream>
#include <string>
for (int ctr = 0; ctr < 256; ctr++)
{
for (i; i < 512; i += 32)
{
for (int j = 0; j < 512; j += 32)
{
std::cout << "Count: " << ctr << i << "," << j << std::endl;
}
}
}
return 0
【问题讨论】:
标签: c++ .net loops for-loop nested