{"id":13,"date":"2010-08-04T07:48:03","date_gmt":"2010-08-04T07:48:03","guid":{"rendered":"http:\/\/192.168.77.7\/wp\/?p=13"},"modified":"2011-09-14T07:48:33","modified_gmt":"2011-09-14T07:48:33","slug":"%e5%a4%9a%e7%bb%a7%e6%89%bf%e7%b1%bb%e7%9a%84%e6%8c%87%e9%92%88%e5%81%8f%e7%a7%bb%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/tixbay.net\/?p=13","title":{"rendered":"\u591a\u7ee7\u627f\u7c7b\u7684\u6307\u9488\u504f\u79fb\u95ee\u9898"},"content":{"rendered":"<div id=\"_mcePaste\">\u4f8b\u5982\uff1a<\/div>\n<div>struct C1<\/div>\n<div id=\"_mcePaste\">{<\/div>\n<div id=\"_mcePaste\">public:<\/div>\n<div id=\"_mcePaste\">virtual void D1() = 0;<\/div>\n<div id=\"_mcePaste\">};<\/div>\n<div id=\"_mcePaste\">class C2<\/div>\n<div id=\"_mcePaste\">{<\/div>\n<div id=\"_mcePaste\">public:<\/div>\n<div id=\"_mcePaste\">virtual void D2() = 0;<\/div>\n<div id=\"_mcePaste\">};<\/div>\n<div id=\"_mcePaste\">class C : public C1, public C2<\/div>\n<div id=\"_mcePaste\">{<\/div>\n<div id=\"_mcePaste\">public:<\/div>\n<div id=\"_mcePaste\">virtual void D1()<\/div>\n<div id=\"_mcePaste\">{<\/div>\n<div id=\"_mcePaste\">C* p = this;<\/div>\n<div id=\"_mcePaste\">C1* q = this;<\/div>\n<div id=\"_mcePaste\">C2* r = this;<\/div>\n<div id=\"_mcePaste\">}<\/div>\n<div id=\"_mcePaste\">virtual void D2()<\/div>\n<div id=\"_mcePaste\">{<\/div>\n<div id=\"_mcePaste\">C* p = this;<\/div>\n<div id=\"_mcePaste\">C1* q = this;<\/div>\n<div id=\"_mcePaste\">C2* r = this;<\/div>\n<div id=\"_mcePaste\">}<\/div>\n<div id=\"_mcePaste\">};<\/div>\n<div id=\"_mcePaste\">int _tmain(int argc, _TCHAR* argv[])<\/div>\n<div id=\"_mcePaste\">{<\/div>\n<div id=\"_mcePaste\">C c;<\/div>\n<div id=\"_mcePaste\">c.D1();<\/div>\n<div id=\"_mcePaste\">c.D2();<\/div>\n<div id=\"_mcePaste\">return 0;<\/div>\n<div id=\"_mcePaste\">}<\/div>\n<div>\n<div>this\u6307\u9488\u4f1a\u5728\u8f6c\u6362\u65f6\u8c03\u6574<\/div>\n<div>D1\u4e2dthis: 0x0035f7fc \u00a0 \u00a0\u00a0p: 0x0035f7fc \u00a0 \u00a0 q: 0x0035f7fc \u00a0 \u00a0 r: 0x0035f800<\/div>\n<div>D2\u4e2dthis: 0x0035f800 \u00a0 p: 0x0035f7fc \u00a0 \u00a0 q: 0x0035f7fc \u00a0 \u00a0 r: 0x0035f800<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4f8b\u5982\uff1a struct C1 { public: virtual void D1( &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/tixbay.net\/?p=13\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-moo"],"_links":{"self":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":2,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/tixbay.net\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tixbay.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}