{"id":1746,"date":"2018-10-25T15:34:03","date_gmt":"2018-10-25T07:34:03","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1746"},"modified":"2018-10-26T13:28:33","modified_gmt":"2018-10-26T05:28:33","slug":"mfc-cptrlist%e7%9a%84%e4%bd%bf%e7%94%a8%e9%81%8d%e5%8e%86","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1746","title":{"rendered":"mfc CPtrList\u7684\u4f7f\u7528\u904d\u5386"},"content":{"rendered":"

\u81ea\u5df1\u5199\u539f\u59cb\u7684\u4e00\u4e2a\u94fe\u8868\uff0c\u8fd8\u662f\u5f88\u9ebb\u70e6\u7684\uff0cmfc\u662f\u6709\u4e00\u4e2a\u5f88\u597d\u7528\u7684\u7c7b\u7684\u3002\u5c31\u662fCPtrList\uff0c\u4ed6\u5c31\u662f\u5b58\u50a8\u591a\u4e2a\u6307\u9488\u7684\u3002<\/p>\n

CPtrList\u6dfb\u52a0\u6307\u9488,pItem\u662f\u4e00\u4e2a\u6307\u9488\uff1a<\/p>\n

m_pSubjectItemList.AddTail(pItem);<\/pre>\n

 <\/p>\n

CPtrList\u7684\u904d\u5386\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n

\tPOSITION pos = m_pSubjectItemList.GetHeadPosition();\r\n\twhile (pos != NULL)\r\n\t{\r\n\t\tCSubjectItem * pOne = (CSubjectItem * )m_pSubjectItemList.GetNext(pos);\r\n\t\tif (pOne != NULL)\r\n\t\t{\r\n\t\t\tdelete pOne;\r\n\t\t}\r\n\t}\t\t\r\n\tm_pSubjectItemList.RemoveAll();<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u81ea\u5df1\u5199\u539f\u59cb\u7684\u4e00\u4e2a\u94fe\u8868\uff0c\u8fd8\u662f\u5f88\u9ebb\u70e6\u7684\uff0cmfc\u662f\u6709\u4e00\u4e2a\u5f88\u597d\u7528\u7684\u7c7b\u7684\u3002\u5c31\u662fCPtrList\uff0c\u4ed6\u5c31\u662f\u5b58\u50a8\u591a\u4e2a\u6307\u9488\u7684\u3002 CPtrList\u6dfb\u52a0\u6307\u9488,pItem\u662f\u4e00\u4e2a\u6307\u9488\uff1a m_pSubjectItemList.AddTail(pItem);   CPtrList\u7684\u904d\u5386\u65b9\u6cd5\u5982\u4e0b\uff1a POSITION pos = m_pSubjectItemList.GetHeadPosition(); while (pos != NULL) { CSubjectItem * pOne = (CSubjectItem * )m_pSubjectItemList.GetNext(pos); if (pOne != NU<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,219,9],"tags":[291],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1746"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1746"}],"version-history":[{"count":15,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1746\/revisions"}],"predecessor-version":[{"id":1763,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1746\/revisions\/1763"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1746"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}