c++循环:不用for的循环

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++;
        }
        
        
        
    }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值