c++中for循环的5种用法

// 第一种用法:最原始的语法(用下标) for (size_t i = 0; i < vecNum.size(); ++i) { strText.Format("%d", nArray[i]); AfxMessageBox(strText); }web // 第二种用法:最原始的语法(用迭代器) for (auto it = vecNum.begin(); it != vecNum.end();
相关文章
相关标签/搜索