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();
相關文章
相關標籤/搜索