概述
for (it = s.da.begin(); it != s.da.end() ; it++ )
{
if (i < s.da.size())
{
d.id = it->id;
d.student_id = it->student_id;
d.student_name = it->student_name;
d.student_brand = it->student_brand;
d.student_version = it->student_version;
d.game_information = it->game_information;
d.game_name = it->game_name;
d.game_version = it->game_version;
d.system_information = it->system_information;
d.system_name = it->system_name;
d.system_version = it->system_version;
d.tool_information = it->tool_information;
d.tool_name = it->tool_name;
d.tool_version = it->tool_version;
str.Format(_T("%s"), d.id.c_str());
this->m_ListCtrl.InsertItem(i, str);
str.Format(_T("%s"), d.student_id.c_str());
this->m_ListCtrl.SetItemText(i, 1, str);
str.Format(_T("%s"), d.student_name.c_str());
this->m_ListCtrl.SetItemText(i, 2, str);
str.Format(_T("%s"), d.student_brand.c_str());
this->m_ListCtrl.SetItemText(i, 3, str);
str.Format(_T("%s"), d.student_version.c_str());
this->m_ListCtrl.SetItemText(i, 4, str);
str.Format(_T("%s"), d.system_name.c_str());
this->m_ListCtrl.SetItemText(i, 5, str);
str.Format(_T("%s"), d.system_version.c_str());
this->m_ListCtrl.SetItemText(i, 6, str);
str.Format(_T("%s"), d.system_information.c_str());
this->m_ListCtrl.SetItemText(i, 7, str);
str.Format(_T("%s"), d.game_name.c_str());
this->m_ListCtrl.SetItemText(i, 8, str);
str.Format(_T("%s"), d.game_version.c_str());
this->m_ListCtrl.SetItemText(i, 9, str);
str.Format(_T("%s"), d.game_information.c_str());
this->m_ListCtrl.SetItemText(i, 10, str);
str.Format(_T("%s"), d.tool_name.c_str());
this->m_ListCtrl.SetItemText(i, 11, str);
str.Format(_T("%s"), d.tool_version.c_str());
this->m_ListCtrl.SetItemText(i, 12, str);
str.Format(_T("%s"), d.tool_information.c_str());
this->m_ListCtrl.SetItemText(i, 13, str);
i++;
}
}
最后
以上就是光亮大雁为你收集整理的c++循环:不用for的循环的全部内容,希望文章能够帮你解决c++循环:不用for的循环所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复