創建結構如下詢問欄列表查找功能MFC
struct DoubleListDataNode
{
INT nSequenceID;
DOUBLE fTemp;
DOUBLE fHumi;
INT nTimeHour;
INT nTimeMiin;
INT nTS1;
INT nTS2;
};
和我創建一個CLIST
typedef CList<DoubleListDataNode *, DoubleListDataNode *> listDoubleListDataNode;
和創建公共變量
listDoubleListDataNode gDoubleListDataNode;
DoubleListDataNode *pDoubleListDataNode;
現在,我有數據在列表中
1 1.00 2.00 001H01M 1 2
2 1.00 2.00 002H01M 1 2
3 3.00 4.00 003H02M 3 4
4 3.00 4.00 004H02M 3 4
5 5.00 6.00 005H03M 5 6
6 5.00 6.00 006H03M 5 5
如何在CList中使用查找功能來查找nSequenceID = 1或5?的
沒有findindex(0)和findindex(5)
我嘗試gDoubleListDataNode(1,...),但
感謝
感謝您的回覆, – user1753112