简体   繁体   中英

VC++ MFC edit box sorting

如何在编辑框中按降序对日期和时间进行排序?

an edit box contains only one single text (either multiple-lines or single line).

if you want a list of date/time string, use CListBox and it has sort member function. Otherwise you'll need to retrieve the complete string from edit box, load it into an array of lines then sort, and put back the sorted result.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM