討論串[STL ] 請問List
共 10 篇文章
內容預覽:
這邊可以寫成這樣:. struct Find_Ob_by_ID{. Find_Ob_by_ID(int kkk) : n(kkk) {}. bool operator()(TP_Gra& lhs). {. return (lhs.v2==n);. }. int n;. };. 用的時候就:. fin
(還有622個字)
內容預覽:
不好意思,複習了一下,我還是把我的一些問題提出來問問好了....@@. 先列出這個網頁所提供的範例. template<int n>. class CComp{. public:. bool operator()(const C& lhs). {. return (lhs.v2==n);. }. }
(還有1226個字)
內容預覽:
感謝推文的大大,看了那篇文章後,有個問題. template<int n>. class CComp{. public:. bool operator()(const C& lhs). {. return (lhs.v2==n);. }. };. vector<C>::iterator cviter
(還有55個字)
內容預覽:
請問一下,我的部份程式碼如下. class TP_Gra{. public:. TP_Gra(int vID,Point vOrigin_Position);. TP_Gra();. ~TP_Gra();. void Set_ID(int vID){ID=vID;}. int Get_ID(){re
(還有667個字)