我想存入三組{int a=0,int b=0,int c=0}, {int a=0,int b=0,int c=0}, ,{int a=0,int b=0,int c=0}, 之后在listbox上顯示 0,0,0 分別在三行
,到時候我加入資料的時候替換成{int a=1,int b=2,int c=3},{int a=0,int b=0,int c=0}, ,{int a=0,int b=0,int c=0}.還要讓這些陣列按照int a 的大小排序 以上操作都在mfc上 大神們求教啊
uj5u.com熱心網友回復:
在線等 著急uj5u.com熱心網友回復:
class CompLess{
public:
bool operator ()(const propertys* pstItem1, const propertys* pstItem2)
{
return pstItem1-> property < pstItem2-> property; //升序
}
};
sort(m_HeroIfnoManage.m_vecPropertys.begin(),m_HeroIfnoManage.m_vecPropertys.end(),CompLess());
排序問題解決了 現在就差怎么插入資料進入記憶體
uj5u.com熱心網友回復:
在線等解決問題啊轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/80986.html
標籤:基礎類
