I declare this below data.
I want to to sort m_data1, m_data2, m_data3, m_data4.Code:CArray<unsigned char, unsigned char> m_data1, m_data2, m_data3, m_data4;
If you know how to do that, please tell me.
Thank you very much.
I declare this below data.
I want to to sort m_data1, m_data2, m_data3, m_data4.Code:CArray<unsigned char, unsigned char> m_data1, m_data2, m_data3, m_data4;
If you know how to do that, please tell me.
Thank you very much.
I recommend STL over MFC for data structure.
As for sorting a CArray object, one solution is to pass the object to a quicksort. You will have to implement the quicksort.
Kuphryn
Quick sort is already implemented in standard library. See the qsort function.
You will only have to implement a comparison callback function, but this is relatively straight forward.