Home > Back-end >  How the memory array stored in three groups and then how to replace the data inside
How the memory array stored in three groups and then how to replace the data inside

Time:09-26

I want to deposit three groups of {int a=0, int b=0, int c=0}, {int a=0, int b=0, int c=0}, and {int a=0, int b=0, int c=0} and then displayed on the listbox 0, 0, respectively in three lines
, when the time comes when I joined the data replace {int a=1, int b=2, int c=3}, {int a=0, int b=0, int c=0}, and {int a=0, int b=0, int c=0}. Let these array according to the size of the int a sort of above operations on the MFC refer the great god ah

CodePudding user response:

Online and in a hurry

CodePudding user response:

The class CompLess
{
Public:
Boolean operator () (const propertys * pstItem1, const propertys * pstItem2)
{
Return pstItem1 - & gt; Property & lt; PstItem2 - & gt; The property;//ascending
}
};
Sort (m_HeroIfnoManage. M_vecPropertys. The begin (), m_HeroIfnoManage. M_vecPropertys. The end (), CompLess ());
Scheduling problem is solved now, was how to insert the data into the memory

CodePudding user response:

Online and solve problems
  • Related