-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.json
More file actions
1 lines (1 loc) · 155 KB
/
db.json
File metadata and controls
1 lines (1 loc) · 155 KB
1
{"meta":{"version":1,"warehouse":"4.0.1"},"models":{"Asset":[{"_id":"source/CNAME","path":"CNAME","modified":0,"renderable":0},{"_id":"themes/hexo-theme-next/source/css/main.styl","path":"css/main.styl","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/css/noscript.styl","path":"css/noscript.styl","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/bookmark.js","path":"js/bookmark.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/comments-buttons.js","path":"js/comments-buttons.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/comments.js","path":"js/comments.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/config.js","path":"js/config.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/motion.js","path":"js/motion.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/next-boot.js","path":"js/next-boot.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/pjax.js","path":"js/pjax.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/schedule.js","path":"js/schedule.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/utils.js","path":"js/utils.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/images/avatar.gif","path":"images/avatar.gif","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/images/favicon-16x16-next.png","path":"images/favicon-16x16-next.png","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/images/apple-touch-icon-next.png","path":"images/apple-touch-icon-next.png","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/images/favicon-32x32-next.png","path":"images/favicon-32x32-next.png","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/images/logo-algolia-nebula-blue-full.svg","path":"images/logo-algolia-nebula-blue-full.svg","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/images/logo.svg","path":"images/logo.svg","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/schemes/muse.js","path":"js/schemes/muse.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/fancybox.js","path":"js/third-party/fancybox.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/pace.js","path":"js/third-party/pace.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/quicklink.js","path":"js/third-party/quicklink.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/rating.js","path":"js/third-party/rating.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/analytics/baidu-analytics.js","path":"js/third-party/analytics/baidu-analytics.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/analytics/google-analytics.js","path":"js/third-party/analytics/google-analytics.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/analytics/growingio.js","path":"js/third-party/analytics/growingio.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/changyan.js","path":"js/third-party/comments/changyan.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/disqus.js","path":"js/third-party/comments/disqus.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/disqusjs.js","path":"js/third-party/comments/disqusjs.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/gitalk.js","path":"js/third-party/comments/gitalk.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/isso.js","path":"js/third-party/comments/isso.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/livere.js","path":"js/third-party/comments/livere.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/utterances.js","path":"js/third-party/comments/utterances.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/chat/chatra.js","path":"js/third-party/chat/chatra.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/chat/gitter.js","path":"js/third-party/chat/gitter.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/chat/tidio.js","path":"js/third-party/chat/tidio.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/math/katex.js","path":"js/third-party/math/katex.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/math/mathjax.js","path":"js/third-party/math/mathjax.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/search/algolia-search.js","path":"js/third-party/search/algolia-search.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/search/local-search.js","path":"js/third-party/search/local-search.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/tags/mermaid.js","path":"js/third-party/tags/mermaid.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/tags/pdf.js","path":"js/third-party/tags/pdf.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/statistics/firestore.js","path":"js/third-party/statistics/firestore.js","modified":0,"renderable":1},{"_id":"themes/hexo-theme-next/source/js/third-party/statistics/lean-analytics.js","path":"js/third-party/statistics/lean-analytics.js","modified":0,"renderable":1}],"Cache":[{"_id":"source/CNAME","hash":"880e449aa40e8b9850c8f3cf89deea68ced66758","modified":1653475153760},{"_id":"source/_posts/c-花括号.md","hash":"e3e9089c32c9cc32fc800838690b106a451136df","modified":1654513151658},{"_id":"source/_posts/函数模板.md","hash":"8f1b8236af8b94182c24031dd56875361a711b96","modified":1653636707134},{"_id":"source/categories/index.md","hash":"e19176ce7858ef00721bedb514fe5a46243c7325","modified":1653475153761},{"_id":"source/about/index.md","hash":"b80e4ad6d3bff9e769141a3010bc4ec0dd7a4ffa","modified":1653475153761},{"_id":"source/_posts/类模板.md","hash":"738fc16f161b2ed3a730103991aaa967ecbc7feb","modified":1653649317881},{"_id":"source/_posts/学习typora.md","hash":"21b5ff864d2e6587e5eac5adf85346c0fcb1f162","modified":1653637435328},{"_id":"themes/hexo-theme-next/.editorconfig","hash":"731c650ddad6eb0fc7c3d4a91cad1698fe7ad311","modified":1653475153761},{"_id":"themes/hexo-theme-next/.eslintrc.json","hash":"611e15c3fcb41dc68fa8532ee595a1262a1b5a8a","modified":1653475153761},{"_id":"themes/hexo-theme-next/.gitignore","hash":"087b7677078303acb2acb47432165950e4d29b43","modified":1653475153766},{"_id":"themes/hexo-theme-next/_vendors.yml","hash":"349dbea9d5700486e3de054124a8af4a4a9d451a","modified":1653475153767},{"_id":"themes/hexo-theme-next/.stylintrc","hash":"6259e2a0b65d46865ab89564b88fc67638668295","modified":1653475153766},{"_id":"themes/hexo-theme-next/.gitattributes","hash":"aeeca2f1e987d83232d7870d1435a4e3ed66b648","modified":1653475153762},{"_id":"themes/hexo-theme-next/LICENSE.md","hash":"8cfb03967dd4cbaf3b825271ffce0039aa3fc22a","modified":1653475153766},{"_id":"themes/hexo-theme-next/package.json","hash":"191a71290875b577715f8c2a69883ec534fefe0e","modified":1653475153790},{"_id":"themes/hexo-theme-next/crowdin.yml","hash":"4a53f5985e545c635cb56b2a57ed290cb8cf8942","modified":1653475153767},{"_id":"themes/hexo-theme-next/renovate.json","hash":"767b077c7b615e20af3cf865813cd64674a9bea6","modified":1653475153790},{"_id":"themes/hexo-theme-next/.githooks/install.js","hash":"305c2a269818466eed9e381b866c6cd1ad7f8afd","modified":1653475153762},{"_id":"themes/hexo-theme-next/README.md","hash":"1ebe6055b0616c6866b9e11b3cfca07f6a0f7f30","modified":1653475153767},{"_id":"themes/hexo-theme-next/.githooks/pre-commit","hash":"b69b9d0b51e27d5d4c87c3242f5067c2cda26e44","modified":1653475153762},{"_id":"themes/hexo-theme-next/.github/config.yml","hash":"0956bf71b6f36632b63b14d26580458041a5abd2","modified":1653475153764},{"_id":"themes/hexo-theme-next/.github/issue_label_bot.yaml","hash":"533fbe6b2f87d7e7ec6949063bb7ea7eb4fbe52d","modified":1653475153764},{"_id":"themes/hexo-theme-next/.github/PULL_REQUEST_TEMPLATE.md","hash":"a103e2d875f7434191859e5b42075cfa9a4cbcb3","modified":1653475153764},{"_id":"themes/hexo-theme-next/.github/label-commenter-config.yml","hash":"a1aa85a2fc66ff0c52c65bd97b0fa282e297a73f","modified":1653475153764},{"_id":"themes/hexo-theme-next/.github/CODE_OF_CONDUCT.md","hash":"593ae64e72d43c020a697eac65b1f9c3483ff097","modified":1653475153762},{"_id":"themes/hexo-theme-next/.github/labeler.yml","hash":"ff76a903609932a867082b8ccced906e9910533a","modified":1653475153765},{"_id":"themes/hexo-theme-next/.github/release-drafter.yml","hash":"de38f816e3023e0a5c1fd1f3c2b626f78bc35246","modified":1653475153765},{"_id":"themes/hexo-theme-next/_config.yml","hash":"f00aa8196c46f9b858e92647c2e0762200ef7449","modified":1653475153767},{"_id":"themes/hexo-theme-next/docs/AUTHORS.md","hash":"579014d47f45b27fd1618b9709f0efe9585c7449","modified":1653475153768},{"_id":"themes/hexo-theme-next/languages/README.md","hash":"b1c96465b3bc139bf5ba6200974b66581d8ff85a","modified":1653475153770},{"_id":"themes/hexo-theme-next/languages/ar.yml","hash":"cc7e3e2855348563d746f15c4752b9c63fcdd91a","modified":1653475153770},{"_id":"themes/hexo-theme-next/docs/LICENSE.txt","hash":"d1cd5a8e83d3bbdb50f902d2b487813da95ddfd3","modified":1653475153768},{"_id":"themes/hexo-theme-next/languages/default.yml","hash":"ea5e6aee4cb14510793ac4593a3bddffe23e530c","modified":1653475153771},{"_id":"themes/hexo-theme-next/languages/de.yml","hash":"83023c4246b93a2f89f342afe29a7b9e1185f74f","modified":1653475153771},{"_id":"themes/hexo-theme-next/languages/fa.yml","hash":"e09fad889ab3ae87874093e1acd51edc9297d869","modified":1653475153772},{"_id":"themes/hexo-theme-next/docs/AGPL3.md","hash":"f463f95b169d64983f59fa6f3e4b6760290a0e6b","modified":1653475153768},{"_id":"themes/hexo-theme-next/languages/en.yml","hash":"66445143decfbb5eb7031eb370698e31d5222a7a","modified":1653475153772},{"_id":"themes/hexo-theme-next/languages/fr.yml","hash":"328c255c82e9b561e20a9f51a4d84abc63d1b90a","modified":1653475153772},{"_id":"themes/hexo-theme-next/languages/es.yml","hash":"21676d658d309eb90342a924e106645611c937bc","modified":1653475153772},{"_id":"themes/hexo-theme-next/.github/CONTRIBUTING.md","hash":"2fdca1040427cabfe27cae6754ec5e027ec7092e","modified":1653475153763},{"_id":"themes/hexo-theme-next/languages/it.yml","hash":"c038ff0cadbe405750d980bcacfd3900acf96905","modified":1653475153773},{"_id":"themes/hexo-theme-next/languages/id.yml","hash":"d7c337ca72efb0bd02ade8b5560c559384ad84dd","modified":1653475153772},{"_id":"themes/hexo-theme-next/languages/nl.yml","hash":"e47858bd1e0d0622c15366ae6c0513d996f589e3","modified":1653475153773},{"_id":"themes/hexo-theme-next/languages/ja.yml","hash":"57a35b21aca04ce8bca64fb5933f35626c462ea3","modified":1653475153773},{"_id":"themes/hexo-theme-next/languages/ko.yml","hash":"a4b607d38fb77f083235a0ecb2384cfdd3542bde","modified":1653475153773},{"_id":"themes/hexo-theme-next/languages/bn.yml","hash":"e78a674af44f19415b9bd91e994548a95be174ae","modified":1653475153771},{"_id":"themes/hexo-theme-next/languages/pt.yml","hash":"ff93459250c33d3c7ba06c30164cc4208edf9b33","modified":1653475153773},{"_id":"themes/hexo-theme-next/languages/pt-BR.yml","hash":"305025e932832328b7e2a8a584638a23c462e68f","modified":1653475153773},{"_id":"themes/hexo-theme-next/languages/tk.yml","hash":"bf61562ac892231bd28f23a2a5597ee98fb05aa6","modified":1653475153774},{"_id":"themes/hexo-theme-next/languages/vi.yml","hash":"e452ea8c48993262a3e8fce9d92072cafabfc734","modified":1653475153774},{"_id":"themes/hexo-theme-next/languages/ru.yml","hash":"837bb39651769244b19ce458053757d429869764","modified":1653475153774},{"_id":"themes/hexo-theme-next/languages/si.yml","hash":"c15ed758dbad890e856f4fc281208d7b78cc1a59","modified":1653475153774},{"_id":"themes/hexo-theme-next/languages/uk.yml","hash":"f32871f67c63d26bc4e3e15df9b01f5a41236a50","modified":1653475153774},{"_id":"themes/hexo-theme-next/languages/tr.yml","hash":"d3262d2221b0583a52e5d20a3cd1380f5dc49378","modified":1653475153774},{"_id":"themes/hexo-theme-next/languages/zh-TW.yml","hash":"70c45076ad722b777956048fcc430eac37844c11","modified":1653475153775},{"_id":"themes/hexo-theme-next/layout/_layout.njk","hash":"2842f3e9fdde5bbd14cac89629221e68d80c8ea1","modified":1653475153776},{"_id":"themes/hexo-theme-next/languages/zh-CN.yml","hash":"f8379d15038e22ef7039d91272cb4f36842dbbe1","modified":1653475153775},{"_id":"themes/hexo-theme-next/languages/zh-HK.yml","hash":"c1ee97ceb56da76ecdc7b69fa975f28c8574441b","modified":1653475153775},{"_id":"themes/hexo-theme-next/layout/index.njk","hash":"fa52c3049871e879980cb6abccdea3792ca4ce70","modified":1653475153789},{"_id":"themes/hexo-theme-next/layout/category.njk","hash":"82f541452cae76a94ee15cb8d8a888f44260a0fd","modified":1653475153789},{"_id":"themes/hexo-theme-next/layout/archive.njk","hash":"aa491dba8f746e626c273a920effedf7d0b32170","modified":1653475153789},{"_id":"themes/hexo-theme-next/layout/post.njk","hash":"707a50e50b90df5fbeaf8407d12895d04163a290","modified":1653475153790},{"_id":"themes/hexo-theme-next/test/index.js","hash":"983a505399796b9d9e174ba46d89abbdde38f8ee","modified":1653475153830},{"_id":"themes/hexo-theme-next/layout/tag.njk","hash":"b6c017d30d08ddd30d66e9c6f3a71aa65d214eac","modified":1653475153790},{"_id":"themes/hexo-theme-next/.github/ISSUE_TEMPLATE/config.yml","hash":"daeedc5da2ee74ac31cf71846b766ca6499e9fc6","modified":1653475153763},{"_id":"themes/hexo-theme-next/.github/workflows/label-commenter.yml","hash":"b87ffaf40820461159c891d0d41c87e00e312ff3","modified":1653475153765},{"_id":"themes/hexo-theme-next/.github/ISSUE_TEMPLATE/bug-report.md","hash":"032194e7975564176f2109aa8b7c020fa6d5e6b1","modified":1653475153763},{"_id":"themes/hexo-theme-next/.github/workflows/labeler.yml","hash":"bfea9b04e3ea7da31a2095277c4c23ae6bd14baa","modified":1653475153765},{"_id":"themes/hexo-theme-next/layout/page.njk","hash":"fddfdee95f5da86eab8a85d6eb1901996d2153cf","modified":1653475153790},{"_id":"themes/hexo-theme-next/.github/ISSUE_TEMPLATE/other.md","hash":"618d07b49f4774cd79613d4001984a19d954a6ad","modified":1653475153764},{"_id":"themes/hexo-theme-next/.github/ISSUE_TEMPLATE/feature-request.md","hash":"4a7885fe2c8b25be02ab57c345cd862aeeeeacaf","modified":1653475153764},{"_id":"themes/hexo-theme-next/.github/workflows/lock.yml","hash":"58eca481fd71088a8ae1dbc04645bcfc03460b87","modified":1653475153766},{"_id":"themes/hexo-theme-next/.github/workflows/release-drafter.yml","hash":"359b74890a47d784e35a5cc3c7885d5cdf302e82","modified":1653475153766},{"_id":"themes/hexo-theme-next/.github/workflows/tester.yml","hash":"dda18899fe62652c633f60c300a93df18f58862f","modified":1653475153766},{"_id":"themes/hexo-theme-next/docs/zh-CN/CODE_OF_CONDUCT.md","hash":"7befb4325b107dd668d9eae3d7e86a34910ce3f2","modified":1653475153770},{"_id":"themes/hexo-theme-next/.github/workflows/linter.yml","hash":"40b9068c85bff6a11ae0f7623fa3b5e9fdbd273e","modified":1653475153765},{"_id":"themes/hexo-theme-next/docs/zh-CN/CONTRIBUTING.md","hash":"a09ceb82b45dd8b7da76c227f3d0bb7eebe7d5d1","modified":1653475153770},{"_id":"themes/hexo-theme-next/layout/_macro/post-collapse.njk","hash":"d9d8e6d7a6a8c80009dd5334cc17fd3e4977a008","modified":1653475153776},{"_id":"themes/hexo-theme-next/docs/ru/README.md","hash":"671f42d187d01cc83351108e75a05776fb4d171e","modified":1653475153769},{"_id":"themes/hexo-theme-next/docs/zh-CN/README.md","hash":"1e1bf249ef3199b9e02a0c40b3aacedf97004106","modified":1653475153770},{"_id":"themes/hexo-theme-next/layout/_macro/sidebar.njk","hash":"eec74e135d01948361020140c3798769e1e7363b","modified":1653475153776},{"_id":"themes/hexo-theme-next/layout/_partials/comments.njk","hash":"60f4620dd479da6d86d1d493440e9e2a28b6e132","modified":1653475153777},{"_id":"themes/hexo-theme-next/layout/_partials/pagination.njk","hash":"2de77d533c91532a8a4052000244d0c1693370df","modified":1653475153780},{"_id":"themes/hexo-theme-next/layout/_partials/footer.njk","hash":"65f0d69084e0e26a0153d3b8db610a15c4102691","modified":1653475153777},{"_id":"themes/hexo-theme-next/layout/_scripts/vendors.njk","hash":"0a1470440f11362df2b1cd6b6228e273d9f999d6","modified":1653475153783},{"_id":"themes/hexo-theme-next/layout/_scripts/index.njk","hash":"4eb65641b47ea9b23ed2ddfd69b18f21d7d8f214","modified":1653475153782},{"_id":"themes/hexo-theme-next/layout/_partials/languages.njk","hash":"537026fc120adeef9148c98ebf074207e3810538","modified":1653475153778},{"_id":"themes/hexo-theme-next/layout/_third-party/quicklink.njk","hash":"73bc15a9c3c5c239ab90efa19a1e721f41f3cb93","modified":1653475153787},{"_id":"themes/hexo-theme-next/layout/_third-party/pace.njk","hash":"13b2a77b4858a127f458ea092b6f713b052befac","modified":1653475153787},{"_id":"themes/hexo-theme-next/layout/_third-party/fancybox.njk","hash":"53ad3c31762b74e5d29787b37d5e494cc4fded9b","modified":1653475153786},{"_id":"themes/hexo-theme-next/layout/_third-party/index.njk","hash":"33a4a3275474bd3bb2e8d1b0ea01b42dda9ea608","modified":1653475153786},{"_id":"themes/hexo-theme-next/layout/_third-party/rating.njk","hash":"d0444179fec512760ab1d4f76928d795b971c884","modified":1653475153787},{"_id":"themes/hexo-theme-next/scripts/events/index.js","hash":"e1c366efdab730a7791099115698c97b31b5ff78","modified":1653475153791},{"_id":"themes/hexo-theme-next/scripts/filters/locals.js","hash":"87f3bff03fa9fd96cf0787a6442464a7ff57f76b","modified":1653475153794},{"_id":"themes/hexo-theme-next/scripts/filters/default-injects.js","hash":"0c9a1fe9906672724dbf274154a37bac1915ca2c","modified":1653475153794},{"_id":"themes/hexo-theme-next/scripts/filters/minify.js","hash":"81edb9cfda491b860ebeb5645c1f5349ccacfbec","modified":1653475153795},{"_id":"themes/hexo-theme-next/scripts/helpers/engine.js","hash":"43568a872a93259fc1c497724a53914474ef83ae","modified":1653475153795},{"_id":"themes/hexo-theme-next/scripts/filters/post.js","hash":"1ca7885ce5024bfda13e28e605a33ba335b8aea0","modified":1653475153795},{"_id":"themes/hexo-theme-next/scripts/helpers/navigation.js","hash":"82f6e81bacf23d10cac71b09cff8708e47891ef3","modified":1653475153795},{"_id":"themes/hexo-theme-next/scripts/helpers/font.js","hash":"0a6fa582a0890ecaf5f03f758a730936e48aeca1","modified":1653475153795},{"_id":"themes/hexo-theme-next/scripts/helpers/next-config.js","hash":"ad764d48715c5da87d33f048ad5f1ae8b4e2eb52","modified":1653475153796},{"_id":"themes/hexo-theme-next/scripts/helpers/next-url.js","hash":"98fc68cf3fcd6253bbb94068ab1d86578a4ef9ea","modified":1653475153796},{"_id":"themes/hexo-theme-next/scripts/helpers/next-vendors.js","hash":"52acbc74c1ead8a77cd3bbcba4e033053683f7d0","modified":1653475153796},{"_id":"themes/hexo-theme-next/scripts/tags/button.js","hash":"86c71c73a63744efbbbb367612871fede0d69529","modified":1653475153796},{"_id":"themes/hexo-theme-next/layout/_partials/widgets.njk","hash":"967594ee64805e27b7ff9d957e23ab3f5c948600","modified":1653475153782},{"_id":"themes/hexo-theme-next/scripts/tags/caniuse.js","hash":"8e912c715702addaf0cefe63e580e45b97ae8c3f","modified":1653475153796},{"_id":"themes/hexo-theme-next/scripts/tags/center-quote.js","hash":"b4d12e6fe29089be0f43bafc9eea736602cd16bf","modified":1653475153797},{"_id":"themes/hexo-theme-next/scripts/tags/group-pictures.js","hash":"1c609312a71d47f838226346aad5c2e1c35f15dd","modified":1653475153797},{"_id":"themes/hexo-theme-next/scripts/tags/link-grid.js","hash":"3f358bb78c5c6fdf45de287f3ead553e3a6a93c2","modified":1653475153797},{"_id":"themes/hexo-theme-next/scripts/tags/index.js","hash":"255dd1090e8319b557eeca43571f0e4f8aab013b","modified":1653475153797},{"_id":"themes/hexo-theme-next/scripts/tags/label.js","hash":"c18b0e619a779ed40be7f014db92af18f45fbd5c","modified":1653475153797},{"_id":"themes/hexo-theme-next/scripts/tags/mermaid.js","hash":"b3844e168b51a99d495ca05562ffac47677f5728","modified":1653475153798},{"_id":"themes/hexo-theme-next/scripts/tags/pdf.js","hash":"317ba4611020cc840854386dde098dbbe452777e","modified":1653475153798},{"_id":"themes/hexo-theme-next/scripts/tags/note.js","hash":"a12fd53e421400836a3722ae69130969558d6ac0","modified":1653475153798},{"_id":"themes/hexo-theme-next/scripts/tags/tabs.js","hash":"e0ed5fe1bc9d2957952a1aacdf3252d6ef3f9743","modified":1653475153798},{"_id":"themes/hexo-theme-next/test/helpers/index.js","hash":"2fb58dca3df2fe53116ee2b1232fa26ebe7b2ce5","modified":1653475153830},{"_id":"themes/hexo-theme-next/scripts/tags/video.js","hash":"f6ad3f52779f0636251238d3cbdc5b6f91cc5aba","modified":1653475153798},{"_id":"themes/hexo-theme-next/test/helpers/font.js","hash":"6f5076bd3f2724e47b46ca69028393a9b6275cd1","modified":1653475153830},{"_id":"themes/hexo-theme-next/test/tags/center-quote.js","hash":"2ac4b5a358681691a17e736de06fce0b640a7023","modified":1653475153831},{"_id":"themes/hexo-theme-next/test/helpers/next-url.js","hash":"08e84781f1cd54e5634b86877ad9cefae4a78e95","modified":1653475153830},{"_id":"themes/hexo-theme-next/test/tags/button.js","hash":"a50ca44eaec3d91c2958e3157d624cd3e68828c7","modified":1653475153830},{"_id":"themes/hexo-theme-next/test/tags/index.js","hash":"5cad001936a694bf32d59751cc2b68a66199f976","modified":1653475153831},{"_id":"themes/hexo-theme-next/test/tags/label.js","hash":"6cad7d84c42511459a89cda3971e8ea5cdee0125","modified":1653475153831},{"_id":"themes/hexo-theme-next/test/tags/caniuse.js","hash":"2852be850d9103c25114253a45e6c62e32517de4","modified":1653475153831},{"_id":"themes/hexo-theme-next/test/tags/mermaid.js","hash":"f718a3d0e303d842e2ca5a3b162539a49e45a520","modified":1653475153832},{"_id":"themes/hexo-theme-next/test/tags/group-pictures.js","hash":"8f66d3c6f03fb11d85aa2ab05c9b3c9aa2b4e994","modified":1653475153831},{"_id":"themes/hexo-theme-next/layout/_macro/post.njk","hash":"ce639fff96aabea825d48fc2d928e07039bacb22","modified":1653475153776},{"_id":"themes/hexo-theme-next/test/tags/pdf.js","hash":"2d114596a8a180b2f3cd2a9c6528a328961f12d4","modified":1653475153832},{"_id":"themes/hexo-theme-next/test/tags/video.js","hash":"88db9a3a26cd35525c43c0339fcd1c5965ec9518","modified":1653475153832},{"_id":"themes/hexo-theme-next/test/tags/note.js","hash":"161a81ce749e239d2403681372d48ecc1b51d7b9","modified":1653475153832},{"_id":"themes/hexo-theme-next/test/tags/link-grid.js","hash":"41730266306c02362258384cd73659223928361f","modified":1653475153831},{"_id":"themes/hexo-theme-next/source/css/_colors.styl","hash":"a88430865c99f47ce1d8240f8895819b8b7b0c06","modified":1653475153799},{"_id":"themes/hexo-theme-next/test/tags/tabs.js","hash":"b19d2592347eae5d6a7a97ca7e8cec03e8f25b51","modified":1653475153832},{"_id":"themes/hexo-theme-next/source/css/main.styl","hash":"38b8a12681a3a04bed02aa1659054912ed6def11","modified":1653475153820},{"_id":"themes/hexo-theme-next/source/css/_mixins.styl","hash":"74cf298800fa560e1521d1875f60b5097a5c3b4d","modified":1653475153813},{"_id":"themes/hexo-theme-next/test/validate/index.js","hash":"560862194991c5963da5a411629d8e6c71d20ee2","modified":1653475153833},{"_id":"themes/hexo-theme-next/source/css/noscript.styl","hash":"6a9e80ca4abb294bc0fb22442fc7a0201dd8fc25","modified":1653475153820},{"_id":"themes/hexo-theme-next/source/js/comments.js","hash":"0b4daf0ce610760bd52e95d423f61f3e1c72442a","modified":1653475153822},{"_id":"themes/hexo-theme-next/source/js/bookmark.js","hash":"1457291a7244b7786ec35b949d97183e4fbd181d","modified":1653475153822},{"_id":"themes/hexo-theme-next/source/js/comments-buttons.js","hash":"81ea6cbcdf0357094753d7523919c1eafa38e79f","modified":1653475153822},{"_id":"themes/hexo-theme-next/source/js/motion.js","hash":"cce4f3cc59e76f899f3c1d9a7c53a33cf693d507","modified":1653475153822},{"_id":"themes/hexo-theme-next/source/js/config.js","hash":"211a9ab35205ccfa6b7c74394bade84da0d00af7","modified":1653475153822},{"_id":"themes/hexo-theme-next/source/js/next-boot.js","hash":"da11083557070d947da48d29d2d60988c8d628e9","modified":1653475153823},{"_id":"themes/hexo-theme-next/source/js/pjax.js","hash":"85293c253e0f43540572c4e4615c712325a732e2","modified":1653475153823},{"_id":"themes/hexo-theme-next/source/images/favicon-16x16-next.png","hash":"943a0d67a9cdf8c198109b28f9dbd42f761d11c3","modified":1653475153821},{"_id":"themes/hexo-theme-next/source/images/apple-touch-icon-next.png","hash":"2959dbc97f31c80283e67104fe0854e2369e40aa","modified":1653475153820},{"_id":"themes/hexo-theme-next/source/js/utils.js","hash":"8abd170f5d3c2399b8012fb08b22dbf4cef2e89f","modified":1653475153829},{"_id":"themes/hexo-theme-next/source/images/avatar.gif","hash":"034b9275741caa8867893bef9549986a124da56b","modified":1653475153820},{"_id":"themes/hexo-theme-next/source/images/logo.svg","hash":"2cb74fd3ea2635e015eabc58a8d488aed6cf6417","modified":1653475153821},{"_id":"themes/hexo-theme-next/source/images/favicon-32x32-next.png","hash":"0749d7b24b0d2fae1c8eb7f671ad4646ee1894b1","modified":1653475153821},{"_id":"themes/hexo-theme-next/layout/_partials/head/head.njk","hash":"3ff7e251bf99a275cd5dfda1b3e51f773c5f7b05","modified":1653475153777},{"_id":"themes/hexo-theme-next/layout/_partials/head/head-unique.njk","hash":"fd75652957c1c3668874fdfd16f4f56027be0d8b","modified":1653475153777},{"_id":"themes/hexo-theme-next/layout/_partials/header/index.njk","hash":"1b2ae17f3c394ce310fe2d9ed5f4d07d8cc74ae7","modified":1653475153778},{"_id":"themes/hexo-theme-next/layout/_partials/header/brand.njk","hash":"8e08c19e1bd92f3179907b0ff3743d6e2371d7ae","modified":1653475153777},{"_id":"themes/hexo-theme-next/layout/_partials/header/menu.njk","hash":"828700af2a2f273d3e3e0554ffc60706d889d539","modified":1653475153778},{"_id":"themes/hexo-theme-next/layout/_partials/header/menu-item.njk","hash":"62513f08e9e7f4abeaeedca91fd0af0861a2540f","modified":1653475153778},{"_id":"themes/hexo-theme-next/layout/_partials/header/sub-menu.njk","hash":"20cb9c39bcdcfa3f710df7bc5838d6e62d4dd674","modified":1653475153778},{"_id":"themes/hexo-theme-next/layout/_partials/page/categories.njk","hash":"b352346dd2cb42f7eeaec5e39d9a2a353b029775","modified":1653475153779},{"_id":"themes/hexo-theme-next/layout/_partials/page/page-header.njk","hash":"92553feb26f30f7fc9147bc4ef122908a9da06be","modified":1653475153779},{"_id":"themes/hexo-theme-next/layout/_partials/page/schedule.njk","hash":"6ec9c97e91c793cc2eb5ac0f7c3c36fdaaf637d1","modified":1653475153779},{"_id":"themes/hexo-theme-next/layout/_partials/page/tags.njk","hash":"752df7d12360a077c51a25609916a3ecc1763bb3","modified":1653475153780},{"_id":"themes/hexo-theme-next/layout/_partials/search/algolia-search.njk","hash":"93fbb449fbd599cb4315d7eb0daeb239811b233f","modified":1653475153781},{"_id":"themes/hexo-theme-next/layout/_partials/search/index.njk","hash":"9766852e72c1809d8c1eea71ac6116b4cc0886d2","modified":1653475153782},{"_id":"themes/hexo-theme-next/layout/_partials/page/breadcrumb.njk","hash":"1fe44a1e156cd30e3e9fd8313e1011ad30970f83","modified":1653475153779},{"_id":"themes/hexo-theme-next/layout/_partials/search/localsearch.njk","hash":"f73d25a8ccfdd5d4ca2953dc434ff8ce36034c57","modified":1653475153782},{"_id":"themes/hexo-theme-next/source/js/schedule.js","hash":"4858233224756e3cadfabd8135f7c4b1e3673b44","modified":1653475153823},{"_id":"themes/hexo-theme-next/layout/_partials/post/post-footer.njk","hash":"e3502059bcc443ce932946a9891fcbe8b2bb362d","modified":1653475153781},{"_id":"themes/hexo-theme-next/layout/_partials/post/post-copyright.njk","hash":"0ebc0142abebbeef4278e32abb543c7d7fa75d88","modified":1653475153780},{"_id":"themes/hexo-theme-next/source/images/logo-algolia-nebula-blue-full.svg","hash":"b85e274207b1392782476a0430feac98db1e7da0","modified":1653475153821},{"_id":"themes/hexo-theme-next/layout/_partials/post/post-followme.njk","hash":"ebf83083856f8bd81ad47ffb985d44e338b4e6bb","modified":1653475153780},{"_id":"themes/hexo-theme-next/layout/_partials/post/post-reward.njk","hash":"58b3f657a47bae406e5fcf19cd5e42680785ac71","modified":1653475153781},{"_id":"themes/hexo-theme-next/layout/_third-party/analytics/baidu-analytics.njk","hash":"3e80332f88b101141be69f2a07f54ed8c053eabb","modified":1653475153783},{"_id":"themes/hexo-theme-next/layout/_third-party/analytics/google-analytics.njk","hash":"52ad137450f7b3d6a330e16b3ed1c6174290f0eb","modified":1653475153784},{"_id":"themes/hexo-theme-next/layout/_third-party/analytics/cloudflare.njk","hash":"17173c45f0b740669ef45aaae1fe96eeb0a0ff52","modified":1653475153783},{"_id":"themes/hexo-theme-next/layout/_third-party/analytics/index.njk","hash":"eef710e9be20e7fed7573d0824feaa4eb1cf2737","modified":1653475153784},{"_id":"themes/hexo-theme-next/layout/_third-party/analytics/growingio.njk","hash":"9ff9ec05c2037beea229a6bb698f9e3546973220","modified":1653475153784},{"_id":"themes/hexo-theme-next/layout/_third-party/analytics/microsoft-clarity.njk","hash":"24719266662fcff63e88a21ee9b5b284abb8b37c","modified":1653475153784},{"_id":"themes/hexo-theme-next/layout/_third-party/chat/chatra.njk","hash":"09d2c9487d75894d45a823e3237ae9f90fd6ee01","modified":1653475153784},{"_id":"themes/hexo-theme-next/layout/_third-party/chat/gitter.njk","hash":"375a86f0b19e130cfa7707007e3a53d9ae7c9b64","modified":1653475153784},{"_id":"themes/hexo-theme-next/layout/_third-party/comments/changyan.njk","hash":"5f7967bd946060f4102263a552ddfbae9975e7ea","modified":1653475153785},{"_id":"themes/hexo-theme-next/layout/_third-party/chat/tidio.njk","hash":"3fbc72427c1211e5dcfd269af1a74852a7ba5c1a","modified":1653475153785},{"_id":"themes/hexo-theme-next/layout/_third-party/comments/disqus.njk","hash":"b0828dd1b1fd66ecd612d9e886a08e7579e9a4f7","modified":1653475153785},{"_id":"themes/hexo-theme-next/layout/_third-party/comments/disqusjs.njk","hash":"c5086b4c35f730f82c99c4a8317f2f153ebde869","modified":1653475153785},{"_id":"themes/hexo-theme-next/layout/_third-party/comments/gitalk.njk","hash":"6fd4df5c21cfe530dbb0c012bc0b202f2c362b9c","modified":1653475153785},{"_id":"themes/hexo-theme-next/layout/_partials/post/post-meta.njk","hash":"9a9c4fb7e7c4fe4b7d474bdfdb4ed2b0a5423df2","modified":1653475153781},{"_id":"themes/hexo-theme-next/layout/_third-party/math/katex.njk","hash":"a84db8bc8804335f95609a221ac1746433dcdc89","modified":1653475153787},{"_id":"themes/hexo-theme-next/layout/_third-party/comments/livere.njk","hash":"b8e0d5de584cece5e05b03db5b86145aa1e422b4","modified":1653475153786},{"_id":"themes/hexo-theme-next/layout/_third-party/comments/isso.njk","hash":"38badcc7624a13961381c2465478056b9602aee5","modified":1653475153785},{"_id":"themes/hexo-theme-next/layout/_partials/sidebar/site-overview.njk","hash":"c5c38b4fb137cc799a6ec31f391d1efc12234c8c","modified":1653475153782},{"_id":"themes/hexo-theme-next/layout/_third-party/comments/utterances.njk","hash":"a7921be7328e1509d33b435175f5333a9aada66f","modified":1653475153786},{"_id":"themes/hexo-theme-next/layout/_third-party/math/mathjax.njk","hash":"a62aa1ed4e35b8d0451d83f341bf0a97538bc9a4","modified":1653475153787},{"_id":"themes/hexo-theme-next/layout/_third-party/math/index.njk","hash":"1856c4b035c5b8e64300a11af0461b519dfc4cf4","modified":1653475153786},{"_id":"themes/hexo-theme-next/layout/_third-party/statistics/index.njk","hash":"866ffa15a3250678eb8a90aa6f609fa965db90fd","modified":1653475153788},{"_id":"themes/hexo-theme-next/layout/_partials/post/post-related.njk","hash":"17e03b61e20a5cb4195f0e0d75261ce61a1cddc4","modified":1653475153781},{"_id":"themes/hexo-theme-next/layout/_third-party/search/algolia-search.njk","hash":"67f67a77f27103177b9940446f43610229536d82","modified":1653475153788},{"_id":"themes/hexo-theme-next/layout/_third-party/statistics/lean-analytics.njk","hash":"8703d1855bb8d251c9b7c2940b7e3be525e53000","modified":1653475153789},{"_id":"themes/hexo-theme-next/layout/_third-party/search/localsearch.njk","hash":"210c32b654adae3d8076c4417d370b42af258cea","modified":1653475153788},{"_id":"themes/hexo-theme-next/layout/_third-party/tags/mermaid.njk","hash":"dd8f963acd5a3685be46fd5319c06df0308d99b2","modified":1653475153789},{"_id":"themes/hexo-theme-next/layout/_third-party/statistics/firestore.njk","hash":"af5336e8bbdc4638435971da115bb7443d374ade","modified":1653475153788},{"_id":"themes/hexo-theme-next/layout/_third-party/statistics/busuanzi-counter.njk","hash":"d97790e4b442a1e3ded7d7b4f84b8ee6cdb6e8ea","modified":1653475153788},{"_id":"themes/hexo-theme-next/layout/_third-party/tags/pdf.njk","hash":"0386c708975cc5faea4f782611c5d2c6b8ac2850","modified":1653475153789},{"_id":"themes/hexo-theme-next/scripts/events/lib/config.js","hash":"f78cd74b25cc0ef65c060fec1d7e056967e26b4b","modified":1653475153791},{"_id":"themes/hexo-theme-next/scripts/events/lib/highlight.js","hash":"00cec6980cafd417def885f496371856cd524a25","modified":1653475153791},{"_id":"themes/hexo-theme-next/scripts/events/lib/injects.js","hash":"1f1ea7b579a49f17574c31d78d663c54896133eb","modified":1653475153791},{"_id":"themes/hexo-theme-next/scripts/events/lib/utils.js","hash":"65825c37e473c942095df05183424003d7263df5","modified":1653475153792},{"_id":"themes/hexo-theme-next/scripts/events/lib/navigation.js","hash":"0a2df7d40d64c61ce7e730bb8269b848b03526d1","modified":1653475153791},{"_id":"themes/hexo-theme-next/scripts/events/lib/vendors.js","hash":"a96050b0a9bcb49f1f6897660efc77991024790a","modified":1653475153792},{"_id":"themes/hexo-theme-next/scripts/filters/comment/changyan.js","hash":"17fbc99521440a5d6c32ac991ba2038a12f86b31","modified":1653475153793},{"_id":"themes/hexo-theme-next/scripts/filters/comment/common.js","hash":"550cc7f57bc3ab3d093e34741e7860222851d4d4","modified":1653475153793},{"_id":"themes/hexo-theme-next/scripts/filters/comment/default-config.js","hash":"1cb58aa6b88f7461c3c3f9605273686adcc30979","modified":1653475153793},{"_id":"themes/hexo-theme-next/scripts/filters/comment/disqusjs.js","hash":"70eb507ef7f1a4fc3ca71a3814cc57afe7f3f60c","modified":1653475153793},{"_id":"themes/hexo-theme-next/scripts/filters/comment/disqus.js","hash":"3283bdd6e5ac7d10376df8ddd5faaec5dc1bd667","modified":1653475153793},{"_id":"themes/hexo-theme-next/scripts/filters/comment/gitalk.js","hash":"96e58efba0dc76af409cc7d2db225f0fe4526ea8","modified":1653475153794},{"_id":"themes/hexo-theme-next/scripts/filters/comment/isso.js","hash":"c22cbccd7d514947e084eeac6a3af1aa41ec857a","modified":1653475153794},{"_id":"themes/hexo-theme-next/scripts/filters/comment/utterances.js","hash":"a50718c081685fd35ff8ea9ca13682c284399ed8","modified":1653475153794},{"_id":"themes/hexo-theme-next/scripts/filters/comment/livere.js","hash":"bb8ebb541c40362c0cbbd8e83d3b777302bb6c40","modified":1653475153794},{"_id":"themes/hexo-theme-next/source/css/_variables/Muse.styl","hash":"d3a8f6e71c86926d0c2a247a31d7446d829736d5","modified":1653475153819},{"_id":"themes/hexo-theme-next/source/css/_variables/Mist.styl","hash":"ee5024be8e39605f0c6d71db038e15e0693d0f41","modified":1653475153819},{"_id":"themes/hexo-theme-next/source/css/_variables/Pisces.styl","hash":"58014a2d087c4126058a99b5b1cb7d8a2eb6224d","modified":1653475153819},{"_id":"themes/hexo-theme-next/source/css/_variables/Gemini.styl","hash":"c4537fa2de33d98baff2c87a73801770414e0b69","modified":1653475153819},{"_id":"themes/hexo-theme-next/source/js/third-party/pace.js","hash":"0ebee77b2307bf4b260afb06c060171ef42b7141","modified":1653475153827},{"_id":"themes/hexo-theme-next/source/js/third-party/rating.js","hash":"a1f44247c18ac00ee3e0026560398429e4c77dd7","modified":1653475153828},{"_id":"themes/hexo-theme-next/source/css/_variables/base.styl","hash":"0876b50a58f114bc0b7982b85c5e5011730253b8","modified":1653475153819},{"_id":"themes/hexo-theme-next/source/js/schemes/muse.js","hash":"714acb6317cc0d4c5aca26d974c536e37bb9ce1b","modified":1653475153823},{"_id":"themes/hexo-theme-next/source/css/_common/outline/index.styl","hash":"7782dfae7a0f8cd61b936fa8ac980440a7bbd3bb","modified":1653475153806},{"_id":"themes/hexo-theme-next/source/js/third-party/fancybox.js","hash":"8a847a7bbdbc0086dd1de12b82107a854b43f5e5","modified":1653475153827},{"_id":"themes/hexo-theme-next/source/js/third-party/quicklink.js","hash":"5b0197e061f57e00875be3636ba372a67693abe0","modified":1653475153828},{"_id":"themes/hexo-theme-next/source/css/_common/components/index.styl","hash":"991c1f80995cec418dc00d3d6b13e2d911ac9894","modified":1653475153799},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/index.styl","hash":"43045d115f8fe95732c446aa45bf1c97609ff2a5","modified":1653475153811},{"_id":"themes/hexo-theme-next/source/css/_common/components/reading-progress.styl","hash":"f3defd56be33dba4866a695396d96c767ce63182","modified":1653475153803},{"_id":"themes/hexo-theme-next/source/css/_common/outline/mobile.styl","hash":"2db4462e9cb87b8aef3f50f850fed407de16da3e","modified":1653475153806},{"_id":"themes/hexo-theme-next/source/css/_common/components/back-to-top.styl","hash":"2bbf9046ef2a8f99ef3668bbb8be4e52e9d97bb7","modified":1653475153799},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/buttons.styl","hash":"f768ecb2fe3e9384777c1c115cd7409e9155edd7","modified":1653475153809},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/base.styl","hash":"1239f1b432a6932b2bb9ebcfbaabf724b8f4e59a","modified":1653475153809},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/comments.styl","hash":"cf8446f4378dcab27b55ede1635c608ae6b8a5c8","modified":1653475153810},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/pagination.styl","hash":"34416a5792d0235caa8c0c7e59725f2df0fa614c","modified":1653475153811},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/normalize.styl","hash":"6d740699fb6a7640647a8fd77c4ea4992d8d6437","modified":1653475153811},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/toggles.styl","hash":"90f7d3baab061e860172b536c9edc38c7fd2ef5c","modified":1653475153813},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tables.styl","hash":"b9388016f8d9274703e77e306a1feaad1b7b9d6c","modified":1653475153811},{"_id":"themes/hexo-theme-next/source/css/_schemes/Gemini/index.styl","hash":"f51b6a4f06359ed56b2d10caa6f15362d3b3751d","modified":1653475153814},{"_id":"themes/hexo-theme-next/source/css/_schemes/Mist/index.styl","hash":"89bf3f6b82cb0fafbbd483431df8f450857c5a0b","modified":1653475153815},{"_id":"themes/hexo-theme-next/source/css/_schemes/Mist/_header.styl","hash":"b1054313ca9419e76fea0451417c881616f50a38","modified":1653475153814},{"_id":"themes/hexo-theme-next/source/css/_schemes/Mist/_menu.styl","hash":"82311a531e26ca5a6ad17cf14959da75d4ac6106","modified":1653475153814},{"_id":"themes/hexo-theme-next/source/css/_schemes/Muse/_layout.styl","hash":"018b6a761e197086174c9f06b4d5ea21cc230951","modified":1653475153816},{"_id":"themes/hexo-theme-next/source/css/_schemes/Muse/_header.styl","hash":"fd89988442f380cba907752fe3f608e3498f8c93","modified":1653475153816},{"_id":"themes/hexo-theme-next/source/css/_schemes/Mist/_layout.styl","hash":"00366a6bd1a66f99f845c5ebfc9e8cf56651b815","modified":1653475153814},{"_id":"themes/hexo-theme-next/source/css/_schemes/Mist/_posts-expand.styl","hash":"4a454bcadd9de7d73172abd3276943e8626657be","modified":1653475153814},{"_id":"themes/hexo-theme-next/source/css/_schemes/Muse/_sub-menu.styl","hash":"2d3e05015796a790abd9d68957a5c698c0c9f9b6","modified":1653475153816},{"_id":"themes/hexo-theme-next/source/css/_schemes/Muse/_menu.styl","hash":"ec5d4e8ffe74722a092a69ace2f8dec7776466a8","modified":1653475153816},{"_id":"themes/hexo-theme-next/source/css/_schemes/Muse/index.styl","hash":"25c2a7930da14f023329df20f38df2728057fb4d","modified":1653475153817},{"_id":"themes/hexo-theme-next/source/css/_schemes/Pisces/_header.styl","hash":"9b2cba0c9aa5a64957294f7548c199db1f63f0f4","modified":1653475153817},{"_id":"themes/hexo-theme-next/source/css/_schemes/Muse/_sidebar.styl","hash":"134272cb8096156c9e32fbbe085394633c7509cd","modified":1653475153816},{"_id":"themes/hexo-theme-next/source/css/_schemes/Pisces/_layout.styl","hash":"9f60d501808f67d151af437221d0dfacc27c180c","modified":1653475153817},{"_id":"themes/hexo-theme-next/source/css/_schemes/Pisces/_sub-menu.styl","hash":"b5c3dd08c520a16ee49f85fa12b4935e725ef261","modified":1653475153818},{"_id":"themes/hexo-theme-next/source/css/_schemes/Pisces/index.styl","hash":"7905f428b46d100ac5928875cb1e2b99fa86fc0b","modified":1653475153818},{"_id":"themes/hexo-theme-next/source/js/third-party/analytics/baidu-analytics.js","hash":"f9579a02599de063ccff336177ba964a2931a6e9","modified":1653475153823},{"_id":"themes/hexo-theme-next/source/css/_schemes/Pisces/_menu.styl","hash":"1d29eca70fa686d895f8e98a283e4a159e40905a","modified":1653475153817},{"_id":"themes/hexo-theme-next/source/css/_schemes/Pisces/_sidebar.styl","hash":"42bf453def88da82c842dca84e8f47087091f08e","modified":1653475153818},{"_id":"themes/hexo-theme-next/source/js/third-party/analytics/growingio.js","hash":"f755e8537ccbbb0bd84c26923f320d4e206e7428","modified":1653475153824},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/changyan.js","hash":"b4cb06fdf531292e2361398a98d75a4ca2b8473a","modified":1653475153825},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/disqus.js","hash":"5460de247c038d6cfbe774d7f8747f0a958d9017","modified":1653475153825},{"_id":"themes/hexo-theme-next/source/js/third-party/analytics/google-analytics.js","hash":"d77d4934d959e7125128754b568f1d041c3fbfff","modified":1653475153824},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/isso.js","hash":"b9b9fd2f0e098a123b34a4932da912a9485ffe6c","modified":1653475153826},{"_id":"themes/hexo-theme-next/source/js/third-party/chat/chatra.js","hash":"72e0766752b78a723fb30e92d533a8b353104e2d","modified":1653475153824},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/gitalk.js","hash":"1e8509356fb027d948d118ab220d9631f4d482fa","modified":1653475153826},{"_id":"themes/hexo-theme-next/source/js/third-party/chat/tidio.js","hash":"77c231bcd64f1c09bd9989909e9fee703b65f47f","modified":1653475153825},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/disqusjs.js","hash":"1c282d6c2151346d1f0aa95055d17abe77054ec9","modified":1653475153825},{"_id":"themes/hexo-theme-next/source/js/third-party/chat/gitter.js","hash":"14b024c920a8b359777d79dd8e1a849387f8f3ad","modified":1653475153824},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/livere.js","hash":"68892d74ef5fc308c6e7e6b4f190826d79f3055d","modified":1653475153826},{"_id":"themes/hexo-theme-next/source/js/third-party/math/katex.js","hash":"5c63ec71458b4fe0cd98fd4a04e11c3746764f11","modified":1653475153827},{"_id":"themes/hexo-theme-next/source/js/third-party/comments/utterances.js","hash":"ec44d7f1c8b51b0aa3cccba099a78f3575ac828c","modified":1653475153826},{"_id":"themes/hexo-theme-next/source/js/third-party/tags/mermaid.js","hash":"e9fffe2a14751e86aed5e84a5e96514413eac2dc","modified":1653475153829},{"_id":"themes/hexo-theme-next/source/js/third-party/math/mathjax.js","hash":"d93556184b2c0aa1dbc4a6fb892d2f77b80d7d9f","modified":1653475153827},{"_id":"themes/hexo-theme-next/source/js/third-party/tags/pdf.js","hash":"e109c2d6828f527f0289d5fa3bb02fce63ee6d93","modified":1653475153829},{"_id":"themes/hexo-theme-next/source/css/_common/components/pages/categories.styl","hash":"80595d274f593b321c0b644a06f3165fe07b16f5","modified":1653475153799},{"_id":"themes/hexo-theme-next/source/js/third-party/search/local-search.js","hash":"e6361ed3d5fa959e11e90f7dab8fdaff398b4425","modified":1653475153828},{"_id":"themes/hexo-theme-next/source/css/_common/components/pages/breadcrumb.styl","hash":"fde10ce94e9ae21a03b60d41d532835b54abdcb1","modified":1653475153799},{"_id":"themes/hexo-theme-next/source/css/_common/components/pages/index.styl","hash":"6cf78a379bb656cc0abb4ab80fcae60152ce41ad","modified":1653475153800},{"_id":"themes/hexo-theme-next/source/js/third-party/statistics/firestore.js","hash":"3272f3373fa7c3910852124bc5e43e90e3470ff8","modified":1653475153828},{"_id":"themes/hexo-theme-next/source/js/third-party/statistics/lean-analytics.js","hash":"6abdc209f4503d4efd676e18bc30ddea813b6ff9","modified":1653475153829},{"_id":"themes/hexo-theme-next/source/css/_common/components/pages/schedule.styl","hash":"091b8c763e43447d087c122a86538f290f83136a","modified":1653475153800},{"_id":"themes/hexo-theme-next/source/css/_common/components/pages/tag-cloud.styl","hash":"56d719bcdcba3d725141c55bbd4b168f3942f912","modified":1653475153800},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-body.styl","hash":"268e0a4cf638b9ce4db07268031ab34c5f31ac65","modified":1653475153801},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-followme.styl","hash":"791bc9befb0d4d06e3e517eccfe0bc3551a02a60","modified":1653475153802},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/index.styl","hash":"df2fbd0ada00f37439b0de965c6f1c29d3c97429","modified":1653475153801},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-gallery.styl","hash":"c34936a17c3d8af6c0988ac6746d7509dc0b50eb","modified":1653475153802},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-collapse.styl","hash":"eebe3013a9a976011570dce2d04dfeae4c31d790","modified":1653475153801},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-nav.styl","hash":"69dff7cf231d01f85671758455726dd666664a73","modified":1653475153802},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-footer.styl","hash":"e53a5eb1d1771e284044bdb0bc0ed2de27923669","modified":1653475153802},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-header.styl","hash":"4d29b6ae7ed3dc44b10df851a4128b6441efa8be","modified":1653475153802},{"_id":"themes/hexo-theme-next/source/css/_common/components/third-party/index.styl","hash":"0c4c5e39f8ac12febaa0f4ff7265151e139edad8","modified":1653475153804},{"_id":"themes/hexo-theme-next/source/css/_common/components/third-party/gitalk.styl","hash":"fb165c1a0d990c5cf98b87773e0dc50410229b96","modified":1653475153803},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-widgets.styl","hash":"0a779f955a0e25df0852e0731517dadb234aa181","modified":1653475153803},{"_id":"themes/hexo-theme-next/source/css/_common/components/third-party/gitter.styl","hash":"7b36f776c41fbb744572c5de2c8d49b35656ec21","modified":1653475153804},{"_id":"themes/hexo-theme-next/source/css/_common/components/third-party/related-posts.styl","hash":"0527153aa821bdbdb84c7b47f60e3cefd95a742f","modified":1653475153804},{"_id":"themes/hexo-theme-next/source/css/_common/components/third-party/math.styl","hash":"1e5776ad4c5c8bcf7596ac74dcabc30704b3f5a0","modified":1653475153804},{"_id":"themes/hexo-theme-next/source/css/_common/components/post/post-reward.styl","hash":"9043d9bc2db35ca000c79258ef89fdb161dc43fb","modified":1653475153802},{"_id":"themes/hexo-theme-next/source/css/_common/outline/header/bookmark.styl","hash":"c8648c8ea3105556be0068d9fb2735261d0d94bc","modified":1653475153805},{"_id":"themes/hexo-theme-next/source/css/_common/outline/header/index.styl","hash":"f465cc1bfe98e3f2b33f5b696d4870c8dc56da6b","modified":1653475153805},{"_id":"themes/hexo-theme-next/source/js/third-party/search/algolia-search.js","hash":"e927000b375e79e2d173bdc6b8b45e67364fad4a","modified":1653475153828},{"_id":"themes/hexo-theme-next/source/css/_common/components/third-party/disqusjs.styl","hash":"c1e9edbfd1c3696b35d5452ae2e6d766f3fe91aa","modified":1653475153803},{"_id":"themes/hexo-theme-next/source/css/_common/outline/footer/index.styl","hash":"02b6d1a53f7a02c6b0929b11f3ab904b5b873a0e","modified":1653475153805},{"_id":"themes/hexo-theme-next/source/css/_common/components/third-party/utterances.styl","hash":"d28856f365a9373c4ae6fe1e5673d63df2dfd65f","modified":1653475153804},{"_id":"themes/hexo-theme-next/source/css/_common/outline/header/github-banner.styl","hash":"05af22f3edc2383a3d97ec4c05e9ac43b014bead","modified":1653475153805},{"_id":"themes/hexo-theme-next/source/css/_common/outline/header/site-nav.styl","hash":"d9bc2b520636b9df7f946295cd430593df4118ff","modified":1653475153806},{"_id":"themes/hexo-theme-next/source/css/_common/outline/header/site-meta.styl","hash":"86b0925e968f35bbc76b473a861e8f9797f7580e","modified":1653475153806},{"_id":"themes/hexo-theme-next/source/css/_common/components/third-party/search.styl","hash":"49c26184580fde8a732899a4de5aae8662e289b8","modified":1653475153804},{"_id":"themes/hexo-theme-next/source/css/_common/outline/header/menu.styl","hash":"2db695204d39e4c7daa7b91585a0ea4b06b49f11","modified":1653475153806},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/sidebar-blogroll.styl","hash":"1c324d56ae83e96db2c4c6d63edd7ee51c936fc1","modified":1653475153807},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/sidebar-author-links.styl","hash":"2c2bfbc34b6f19d262ae7c041474985e12f4f4ad","modified":1653475153807},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/index.styl","hash":"9964a96f9a647cfb16b97679eced79d07e084e6d","modified":1653475153807},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/sidebar-dimmer.styl","hash":"57ed6770535ecb2e6485a0c87d4de6d6476368b9","modified":1653475153808},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/site-state.styl","hash":"2de038def2cb91da143b14696366c14a66e0e569","modified":1653475153809},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/sidebar-button.styl","hash":"63d8f5f169c2b1c969928fc79244c5fe89ee484e","modified":1653475153807},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/sidebar-author.styl","hash":"d8a028f532d562e6a86bb3b9c7b992e4b6dbbb51","modified":1653475153807},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/sidebar-toc.styl","hash":"081345490271840855d1238b969dbf2e0a2bba8f","modified":1653475153808},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/sidebar-nav.styl","hash":"db4f3263b2b6551dd56bfdf33cceaf81661a3611","modified":1653475153808},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/group-pictures.styl","hash":"8d9218980e185210ce034e9769ab639b9630fd88","modified":1653475153812},{"_id":"themes/hexo-theme-next/source/css/_common/outline/sidebar/sidebar-toggle.styl","hash":"6681ffe283f8a7e3c86310ef4f6ca1e499c1a19f","modified":1653475153809},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/highlight/copy-code.styl","hash":"047bf8176ea24e277b1a4f6e6ad599033f1d1a44","modified":1653475153810},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/label.styl","hash":"531daf2612c6217950677a2d03924459ce57c291","modified":1653475153812},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/index.styl","hash":"e22fde6f1657d311d46f64d868c4491d535c8caa","modified":1653475153812},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/highlight/index.styl","hash":"ee05c1d00bc38397bd320128bbe15d05d9100039","modified":1653475153810},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/pdf.styl","hash":"77122986509a6b4968bae2729417b7016137534c","modified":1653475153813},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/blockquote-center.styl","hash":"6b3680e0dbea8e14c1cec24ef63b7fae5e37f7ef","modified":1653475153811},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/mermaid.styl","hash":"c7754dc6c866928b538f0863a05b96ec44b5e986","modified":1653475153812},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/link-grid.styl","hash":"7075dd32dd70da1e161e4bd14b46f1e8be62fa3c","modified":1653475153812},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/note.styl","hash":"2e9dc3b3546e19e9de18050ad04b1741841116bc","modified":1653475153813},{"_id":"themes/hexo-theme-next/source/css/_common/scaffolding/tags/tabs.styl","hash":"f71b2022094c5bc8c74b4ed049639f7262e0b182","modified":1653475153813},{"_id":"public/categories/index.html","hash":"7303082b773d8cce245783a4549c6f187842ba6a","modified":1654674913705},{"_id":"public/about/index.html","hash":"7fb6282e5dfc62848bc3b9d0422877e7b4925d38","modified":1654674913705},{"_id":"public/archives/index.html","hash":"c37efd9f7568e23627a2850530a15ccb04b9e97e","modified":1654674913705},{"_id":"public/archives/2022/index.html","hash":"05381678c1a16148eb0aa83c0af72eb2aa0aa43d","modified":1654674913705},{"_id":"public/archives/2022/05/index.html","hash":"e1539436c825bf13b3de4149d36a93578f6937d4","modified":1654674913705},{"_id":"public/archives/2022/06/index.html","hash":"ca20968c82aabce42eab4f6b04447f752b104fa1","modified":1654674913705},{"_id":"public/categories/c/index.html","hash":"9ef7724853ef88235295e290837c4b3313db0308","modified":1654674913705},{"_id":"public/categories/其他/index.html","hash":"10fccf11855b201d2526b86f4996c9c624638c41","modified":1654674913705},{"_id":"public/2022/06/06/c-花括号/index.html","hash":"ba6a5968d229b273f7dc9506d98842bff8d7342e","modified":1654674913705},{"_id":"public/2022/05/27/类模板/index.html","hash":"e67fbe6711cafdff8d40563e1f0ce7ee113e2ae1","modified":1654674913705},{"_id":"public/2022/05/27/函数模板/index.html","hash":"833ee72165ada430692b03ee41db880cb1053d63","modified":1654674913705},{"_id":"public/2022/05/26/学习typora/index.html","hash":"c562f5a29bceca6e64a05ddb2c34ae34ec95eca2","modified":1654674913705},{"_id":"public/index.html","hash":"8c242c83a84976215c621e1b0e364f043703c4b5","modified":1654674913705},{"_id":"public/CNAME","hash":"880e449aa40e8b9850c8f3cf89deea68ced66758","modified":1654513291169},{"_id":"public/images/apple-touch-icon-next.png","hash":"2959dbc97f31c80283e67104fe0854e2369e40aa","modified":1654513291169},{"_id":"public/images/avatar.gif","hash":"034b9275741caa8867893bef9549986a124da56b","modified":1654513291169},{"_id":"public/images/logo-algolia-nebula-blue-full.svg","hash":"b85e274207b1392782476a0430feac98db1e7da0","modified":1654513291169},{"_id":"public/images/favicon-16x16-next.png","hash":"943a0d67a9cdf8c198109b28f9dbd42f761d11c3","modified":1654513291169},{"_id":"public/images/logo.svg","hash":"2cb74fd3ea2635e015eabc58a8d488aed6cf6417","modified":1654513291169},{"_id":"public/images/favicon-32x32-next.png","hash":"0749d7b24b0d2fae1c8eb7f671ad4646ee1894b1","modified":1654513291169},{"_id":"public/js/comments-buttons.js","hash":"1a7344440321713426a0b2ab17e276b5bdf85ade","modified":1654513291169},{"_id":"public/js/config.js","hash":"4c4ebbe3b3f3841a26f9d5af6d0ba8bc6da01c54","modified":1654513291169},{"_id":"public/js/comments.js","hash":"66ae2e26ea36a41b72c638ea8b220296638ae952","modified":1654513291169},{"_id":"public/js/bookmark.js","hash":"0f563ffbf05fad30e854e413ab17ff7164ab5a53","modified":1654513291169},{"_id":"public/js/motion.js","hash":"f7c825cbff11885fa0dffa64824fd00e505d6a8d","modified":1654513291169},{"_id":"public/css/noscript.css","hash":"ec89b3425fbce20863d554c6fd495ea29c3c303d","modified":1654513291169},{"_id":"public/js/next-boot.js","hash":"da0f07f9eaaa83de70128b0feaea3fdadb90457a","modified":1654513291169},{"_id":"public/js/pjax.js","hash":"919f5281c4a04d11cfd94573ecf57b3dbabd3cc8","modified":1654513291169},{"_id":"public/js/schedule.js","hash":"a1333258726caf84f368a8f8454639c7dc1626bb","modified":1654513291169},{"_id":"public/js/utils.js","hash":"200088bfd042f5304b2a04befab0829148845e0e","modified":1654513291169},{"_id":"public/js/schemes/muse.js","hash":"9794bd4fc6a458322949d6a0ade89cd1026bc69f","modified":1654513291169},{"_id":"public/js/third-party/fancybox.js","hash":"c098d14e65dd170537134358d4b8359ad0539c2c","modified":1654513291169},{"_id":"public/js/third-party/pace.js","hash":"0ef04218b93561ba4d0ff420d556c3d90a756d32","modified":1654513291169},{"_id":"public/js/third-party/rating.js","hash":"4e92c2d107ba47b47826829f9668030d5ea9bfb8","modified":1654513291169},{"_id":"public/js/third-party/analytics/baidu-analytics.js","hash":"f629acc46ff40c071ffd31b77d5c7616f0fdd778","modified":1654513291169},{"_id":"public/js/third-party/quicklink.js","hash":"eed02e6fced8e5a653077205d4d4d7834ca71472","modified":1654513291169},{"_id":"public/js/third-party/analytics/google-analytics.js","hash":"59684383385059dc4f8a1ff85dbbeb703bcdbcb5","modified":1654513291169},{"_id":"public/js/third-party/analytics/growingio.js","hash":"78dd3cf04082b7dbe6246e404b2aa8e726922402","modified":1654513291169},{"_id":"public/js/third-party/comments/changyan.js","hash":"260d1a77d6a3bb33a579d3e4cca1997003e799b5","modified":1654513291169},{"_id":"public/js/third-party/comments/disqus.js","hash":"e1cc671b0d524864fd445e3ab4ade9ee6d07e565","modified":1654513291169},{"_id":"public/js/third-party/comments/disqusjs.js","hash":"b6c58f098473b526d6a3cd35655caf34b77f7cff","modified":1654513291169},{"_id":"public/js/third-party/comments/gitalk.js","hash":"0ec038cf83e8ec067534f16a54041e47a3c1e59a","modified":1654513291169},{"_id":"public/js/third-party/comments/isso.js","hash":"753a873b6f566aff5ba77ca23f91b78eb880ca64","modified":1654513291169},{"_id":"public/js/third-party/comments/livere.js","hash":"2247d88c934c765c43013337860774aaa99f0b31","modified":1654513291169},{"_id":"public/js/third-party/comments/utterances.js","hash":"f67f90eb03e284c82da2b8cf2f1e31801813c16d","modified":1654513291169},{"_id":"public/js/third-party/chat/chatra.js","hash":"c32180522788c10e51df1803aa6842ef0432ddc9","modified":1654513291169},{"_id":"public/js/third-party/chat/gitter.js","hash":"cc38c94125f90dadde11b5ebac7d8bf99a1a08a2","modified":1654513291169},{"_id":"public/js/third-party/chat/tidio.js","hash":"b0079f6a4601e06ca6fe46e83a2f5af553e9bc3c","modified":1654513291169},{"_id":"public/js/third-party/math/katex.js","hash":"83c54ee536e487a1031783443fe0cb63b1b4767e","modified":1654513291169},{"_id":"public/js/third-party/math/mathjax.js","hash":"5c749b9c1c3bb738122d0516211ecff6496d4907","modified":1654513291169},{"_id":"public/js/third-party/search/algolia-search.js","hash":"fdb7b7cef1a147d897e7f7cd8903b58368ec2062","modified":1654513291169},{"_id":"public/js/third-party/search/local-search.js","hash":"4536cb6d0a9bbaaa86fab3fa0101f6a3a3ec5a76","modified":1654513291169},{"_id":"public/js/third-party/tags/mermaid.js","hash":"f27d817b0c2138dd3215b1f46af0753f60a008f3","modified":1654513291169},{"_id":"public/js/third-party/tags/pdf.js","hash":"af78c22f0e61c8c8aa8794e585e0d632c6d4fcb8","modified":1654513291169},{"_id":"public/js/third-party/statistics/firestore.js","hash":"411a72df581f5b21317dc28633c7993207eb9e1c","modified":1654513291169},{"_id":"public/js/third-party/statistics/lean-analytics.js","hash":"5a928990856b8e456f0663cf3b6b406733672e39","modified":1654513291169},{"_id":"public/css/main.css","hash":"5d6947daab0866d10796469c5f4f1735a989bde3","modified":1654513291169},{"_id":"source/_posts/引用.md","hash":"9e72ce0ce9be9a9215c063f4c6f08bdade7b5ea0","modified":1654674848137},{"_id":"public/2022/06/08/引用/index.html","hash":"a75091f70115050a3aad7cbc6939545f46c8f530","modified":1654674913705}],"Category":[{"name":"c++","_id":"cl42mhu3x0004r8vlejy14mzo"},{"name":"其他","_id":"cl42mhu400007r8vla03s0jcw"}],"Data":[],"Page":[{"title":"categories","date":"2022-05-23T11:39:49.000Z","type":"categories","_content":"","source":"categories/index.md","raw":"---\ntitle: categories\ndate: 2022-05-23 19:39:49\ntype: \"categories\"\n---\n","updated":"2022-05-25T10:39:13.761Z","path":"categories/index.html","comments":1,"layout":"page","_id":"cl42mhu3r0000r8vl6rw14ijx","content":"","site":{"data":{}},"excerpt":"","more":""},{"title":"关于","date":"2022-05-23T10:52:22.000Z","_content":"\n#性别:男\n#籍贯:中国湖南省耒阳市\n#年龄:25+\n#专业:控制科学与工程专业\n\n#学习经历\n- 小学:耒阳市金杯完小\n- 初中:耒阳市冠湘中学\n- 高中:耒阳一中\n- 本科:华中科技大学\n- 研究生:华南理工大学\n\n#写博客的目的\n一、养成一个好习惯,记录自己学习编程的历程。\n\n二、记录自己遇到并解决的一些困难,并自己拙劣的见解放在博客供人参考。\n\n三、提高自己的思维能力,加深对技术的理解。\n\n\n\n####github:\nhttps://github.com/stuBirdFly/stuBirdFly.github.io.git","source":"about/index.md","raw":"---\ntitle: 关于\ndate: 2022-05-23 18:52:22\n---\n\n#性别:男\n#籍贯:中国湖南省耒阳市\n#年龄:25+\n#专业:控制科学与工程专业\n\n#学习经历\n- 小学:耒阳市金杯完小\n- 初中:耒阳市冠湘中学\n- 高中:耒阳一中\n- 本科:华中科技大学\n- 研究生:华南理工大学\n\n#写博客的目的\n一、养成一个好习惯,记录自己学习编程的历程。\n\n二、记录自己遇到并解决的一些困难,并自己拙劣的见解放在博客供人参考。\n\n三、提高自己的思维能力,加深对技术的理解。\n\n\n\n####github:\nhttps://github.com/stuBirdFly/stuBirdFly.github.io.git","updated":"2022-05-25T10:39:13.761Z","path":"about/index.html","comments":1,"layout":"page","_id":"cl42mhu3v0002r8vlakwsdokk","content":"<p>#性别:男<br>#籍贯:中国湖南省耒阳市<br>#年龄:25+<br>#专业:控制科学与工程专业</p>\n<p>#学习经历</p>\n<ul>\n<li>小学:耒阳市金杯完小</li>\n<li>初中:耒阳市冠湘中学</li>\n<li>高中:耒阳一中</li>\n<li>本科:华中科技大学</li>\n<li>研究生:华南理工大学</li>\n</ul>\n<p>#写博客的目的<br>一、养成一个好习惯,记录自己学习编程的历程。</p>\n<p>二、记录自己遇到并解决的一些困难,并自己拙劣的见解放在博客供人参考。</p>\n<p>三、提高自己的思维能力,加深对技术的理解。</p>\n<p>####github:<br><a href=\"https://github.com/stuBirdFly/stuBirdFly.github.io.git\">https://github.com/stuBirdFly/stuBirdFly.github.io.git</a></p>\n","site":{"data":{}},"excerpt":"","more":"<p>#性别:男<br>#籍贯:中国湖南省耒阳市<br>#年龄:25+<br>#专业:控制科学与工程专业</p>\n<p>#学习经历</p>\n<ul>\n<li>小学:耒阳市金杯完小</li>\n<li>初中:耒阳市冠湘中学</li>\n<li>高中:耒阳一中</li>\n<li>本科:华中科技大学</li>\n<li>研究生:华南理工大学</li>\n</ul>\n<p>#写博客的目的<br>一、养成一个好习惯,记录自己学习编程的历程。</p>\n<p>二、记录自己遇到并解决的一些困难,并自己拙劣的见解放在博客供人参考。</p>\n<p>三、提高自己的思维能力,加深对技术的理解。</p>\n<p>####github:<br><a href=\"https://github.com/stuBirdFly/stuBirdFly.github.io.git\">https://github.com/stuBirdFly/stuBirdFly.github.io.git</a></p>\n"}],"Post":[{"title":"函数模板","date":"2022-05-27T06:47:07.000Z","_content":"\n# 函数模板概念\n\n函数模板是用于生成函数的模板,**在编译阶段**,编译器会根据函数模板的使用情况创建出**函数名**相同,参数类型由编译器判断的若干函数。\n\n通过函数模板创建的函数拥有相同的函数体,只是函数的参数类型不同。\n\n简而言之,函数模板就是函数逻辑相同,参数类型不同,可以使本来多个函数体变为一个函数体。\n\n# 函数模板的使用\n\n**函数模板的定义和声明最好放在头文件中**\n\n\n\n## 函数模板的声明\n\n```c++\ntemplate<typename T>\n返回类型 函数名 (参数列表)\n{\n 函数体\n}\n```\n\n如:比较两个整形和浮点是否相等,因为参数类型不同,本要写两个函数体,但是因为逻辑一样,使用函数模板的话就只需要一个函数。\n\n```c++\ntemplate<typename T>\n//函数的声明\nbool isEqual(T a,T b);\n//函数的定义\nbool isEqual(T a,T b)\n{\n return a==b;\n}\n```\n\n\n\n# 函数模板的特化\n\n函数模板的特化是指在实例化函数模板时,对特定类型的实参进行特殊的处理。即当**实参为特定类型**的时候,通过函数模板生成的函数会有不同的函数体。\n\n## 函数模板特化的定义\n\n```c++\ntemplate<>\n返回类型 函数名<特定类型>(参数列表)\n{\n 函数体\n}\n```\n\n如:出现字符串类型进行比较,则使用==无法比较,此时需要函数模板的特化,额外添加一个函数声明。\n\n```c++\ntemplate<>\nbool isEqual<char*>(char* s1,char* s2)\n{\n return strcmp(s1,s2)==0; \n}\n```\n\n\n\n","source":"_posts/函数模板.md","raw":"---\ntitle: 函数模板\ndate: 2022-05-27 14:47:07\ncategories:\n- c++\n---\n\n# 函数模板概念\n\n函数模板是用于生成函数的模板,**在编译阶段**,编译器会根据函数模板的使用情况创建出**函数名**相同,参数类型由编译器判断的若干函数。\n\n通过函数模板创建的函数拥有相同的函数体,只是函数的参数类型不同。\n\n简而言之,函数模板就是函数逻辑相同,参数类型不同,可以使本来多个函数体变为一个函数体。\n\n# 函数模板的使用\n\n**函数模板的定义和声明最好放在头文件中**\n\n\n\n## 函数模板的声明\n\n```c++\ntemplate<typename T>\n返回类型 函数名 (参数列表)\n{\n 函数体\n}\n```\n\n如:比较两个整形和浮点是否相等,因为参数类型不同,本要写两个函数体,但是因为逻辑一样,使用函数模板的话就只需要一个函数。\n\n```c++\ntemplate<typename T>\n//函数的声明\nbool isEqual(T a,T b);\n//函数的定义\nbool isEqual(T a,T b)\n{\n return a==b;\n}\n```\n\n\n\n# 函数模板的特化\n\n函数模板的特化是指在实例化函数模板时,对特定类型的实参进行特殊的处理。即当**实参为特定类型**的时候,通过函数模板生成的函数会有不同的函数体。\n\n## 函数模板特化的定义\n\n```c++\ntemplate<>\n返回类型 函数名<特定类型>(参数列表)\n{\n 函数体\n}\n```\n\n如:出现字符串类型进行比较,则使用==无法比较,此时需要函数模板的特化,额外添加一个函数声明。\n\n```c++\ntemplate<>\nbool isEqual<char*>(char* s1,char* s2)\n{\n return strcmp(s1,s2)==0; \n}\n```\n\n\n\n","slug":"函数模板","published":1,"updated":"2022-05-27T07:31:47.134Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl42mhu3t0001r8vl5ao71g42","content":"<h1 id=\"函数模板概念\"><a href=\"#函数模板概念\" class=\"headerlink\" title=\"函数模板概念\"></a>函数模板概念</h1><p>函数模板是用于生成函数的模板,<strong>在编译阶段</strong>,编译器会根据函数模板的使用情况创建出<strong>函数名</strong>相同,参数类型由编译器判断的若干函数。</p>\n<p>通过函数模板创建的函数拥有相同的函数体,只是函数的参数类型不同。</p>\n<p>简而言之,函数模板就是函数逻辑相同,参数类型不同,可以使本来多个函数体变为一个函数体。</p>\n<h1 id=\"函数模板的使用\"><a href=\"#函数模板的使用\" class=\"headerlink\" title=\"函数模板的使用\"></a>函数模板的使用</h1><p><strong>函数模板的定义和声明最好放在头文件中</strong></p>\n<h2 id=\"函数模板的声明\"><a href=\"#函数模板的声明\" class=\"headerlink\" title=\"函数模板的声明\"></a>函数模板的声明</h2><figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T></span><br><span class=\"line\">返回类型 函数名 (参数列表)</span><br><span class=\"line\">{</span><br><span class=\"line\"> 函数体</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>如:比较两个整形和浮点是否相等,因为参数类型不同,本要写两个函数体,但是因为逻辑一样,使用函数模板的话就只需要一个函数。</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T></span><br><span class=\"line\"><span class=\"comment\">//函数的声明</span></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">bool</span> <span class=\"title\">isEqual</span><span class=\"params\">(T a,T b)</span></span>;</span><br><span class=\"line\"><span class=\"comment\">//函数的定义</span></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">bool</span> <span class=\"title\">isEqual</span><span class=\"params\">(T a,T b)</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\"> <span class=\"keyword\">return</span> a==b;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n\n\n<h1 id=\"函数模板的特化\"><a href=\"#函数模板的特化\" class=\"headerlink\" title=\"函数模板的特化\"></a>函数模板的特化</h1><p>函数模板的特化是指在实例化函数模板时,对特定类型的实参进行特殊的处理。即当<strong>实参为特定类型</strong>的时候,通过函数模板生成的函数会有不同的函数体。</p>\n<h2 id=\"函数模板特化的定义\"><a href=\"#函数模板特化的定义\" class=\"headerlink\" title=\"函数模板特化的定义\"></a>函数模板特化的定义</h2><figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><></span><br><span class=\"line\">返回类型 函数名<特定类型>(参数列表)</span><br><span class=\"line\">{</span><br><span class=\"line\"> 函数体</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>如:出现字符串类型进行比较,则使用==无法比较,此时需要函数模板的特化,额外添加一个函数声明。</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><></span><br><span class=\"line\"><span class=\"type\">bool</span> <span class=\"built_in\">isEqual</span><<span class=\"type\">char</span>*>(<span class=\"type\">char</span>* s1,<span class=\"type\">char</span>* s2)</span><br><span class=\"line\">{</span><br><span class=\"line\"> <span class=\"keyword\">return</span> <span class=\"built_in\">strcmp</span>(s1,s2)==<span class=\"number\">0</span>; </span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n\n\n","site":{"data":{}},"excerpt":"","more":"<h1 id=\"函数模板概念\"><a href=\"#函数模板概念\" class=\"headerlink\" title=\"函数模板概念\"></a>函数模板概念</h1><p>函数模板是用于生成函数的模板,<strong>在编译阶段</strong>,编译器会根据函数模板的使用情况创建出<strong>函数名</strong>相同,参数类型由编译器判断的若干函数。</p>\n<p>通过函数模板创建的函数拥有相同的函数体,只是函数的参数类型不同。</p>\n<p>简而言之,函数模板就是函数逻辑相同,参数类型不同,可以使本来多个函数体变为一个函数体。</p>\n<h1 id=\"函数模板的使用\"><a href=\"#函数模板的使用\" class=\"headerlink\" title=\"函数模板的使用\"></a>函数模板的使用</h1><p><strong>函数模板的定义和声明最好放在头文件中</strong></p>\n<h2 id=\"函数模板的声明\"><a href=\"#函数模板的声明\" class=\"headerlink\" title=\"函数模板的声明\"></a>函数模板的声明</h2><figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T></span><br><span class=\"line\">返回类型 函数名 (参数列表)</span><br><span class=\"line\">{</span><br><span class=\"line\"> 函数体</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>如:比较两个整形和浮点是否相等,因为参数类型不同,本要写两个函数体,但是因为逻辑一样,使用函数模板的话就只需要一个函数。</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T></span><br><span class=\"line\"><span class=\"comment\">//函数的声明</span></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">bool</span> <span class=\"title\">isEqual</span><span class=\"params\">(T a,T b)</span></span>;</span><br><span class=\"line\"><span class=\"comment\">//函数的定义</span></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">bool</span> <span class=\"title\">isEqual</span><span class=\"params\">(T a,T b)</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\"> <span class=\"keyword\">return</span> a==b;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n\n\n<h1 id=\"函数模板的特化\"><a href=\"#函数模板的特化\" class=\"headerlink\" title=\"函数模板的特化\"></a>函数模板的特化</h1><p>函数模板的特化是指在实例化函数模板时,对特定类型的实参进行特殊的处理。即当<strong>实参为特定类型</strong>的时候,通过函数模板生成的函数会有不同的函数体。</p>\n<h2 id=\"函数模板特化的定义\"><a href=\"#函数模板特化的定义\" class=\"headerlink\" title=\"函数模板特化的定义\"></a>函数模板特化的定义</h2><figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><></span><br><span class=\"line\">返回类型 函数名<特定类型>(参数列表)</span><br><span class=\"line\">{</span><br><span class=\"line\"> 函数体</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>如:出现字符串类型进行比较,则使用==无法比较,此时需要函数模板的特化,额外添加一个函数声明。</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><></span><br><span class=\"line\"><span class=\"type\">bool</span> <span class=\"built_in\">isEqual</span><<span class=\"type\">char</span>*>(<span class=\"type\">char</span>* s1,<span class=\"type\">char</span>* s2)</span><br><span class=\"line\">{</span><br><span class=\"line\"> <span class=\"keyword\">return</span> <span class=\"built_in\">strcmp</span>(s1,s2)==<span class=\"number\">0</span>; </span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n\n\n"},{"title":"学习typora","date":"2022-05-26T08:30:12.000Z","_content":"\n# 标题\n\n加一个#和空格表示一级标题,加两个##表示二级标题,类似的,可以到六级标题。(注意#后与标题间要有个空格),而markdown是不需要的。\n\n\n\n# 段落\n\n按换行符enter可以建立新的一行,按shift+enter可以创建一个比段落间距更小的行间距。\n\n\n\n# 字体\n\n### 斜体\n\n以* 或_ 括住需要改变字体的文段,例如:\n\n*这是我要改变的斜体1*, _这是我要改变的斜体二_。\n\n### 加粗\n\n以** 或_ _括住的字体就是加粗字体,例如:\n\n**加粗字体1**,__加粗字体二__。\n\n### 删除线\n\n开头用~~,结尾也用,例如:\n\n~~这是错误文字~~\n\n### 下划线\n\n使用HTML标签< u >和< /u >,中间没有空格,例如:\n\n<u>这是下划线</u>\n\n### 高亮\n\n用==括住的内容就是高亮内容,需要自己在偏好设置里面打开这项功能,例如:\n\n==这是高亮内容==\n\n\n\n# 代码\n\n行内输入代码块快捷键:Ctrl+shift+K\n\n- 1.开头```+语言名,开启代码块,换行键\n\n```c++\n#include <iostream>\nusing namespace std;\n\nint main()\n{\n cout<<\"这是一个测试文件\";\n}\n```\n\n- 2.用`包括起来的也是表示代码\n\n `这也可以显示成代码`\n\n\n\n# 分割线\n\n输入···按换行建换行,即可绘制一条水平线,如\n\n···\n\n\n\n# 超链接\n\n用[ ]括住要超链接的内容,然后后面用( )括住超链接的地址,如:\n\n[我的github](https://github.com/stuBirdFly/stuBirdFly.github.io)\n\n\n\n# URLs\n\n用<>括住url,可手动设置url,对于标准的urls会自动识别,如:\n\n<www.baidu.com>\n\n\n\n# 图片\n\n- 1.手动添加:和添加超链接方式区别不大,前面加一个感叹号!。如\n\n \n\n \n\n- 2.直接拖曳进来,自动生成链接。\n\n\n\n# Typora图床设置\n\n进入Typora偏好设置,点击图像,**这里注意:Typora的版本必须在0.9.86以上**才可以在Typora中集成图床。设置如下图所示:\n\n\n\n下载更新完以后打开配置文件,按下图格式修改:\n\n\n\n**注意:\"smms\"后有个逗号。**\n\n如果没有图床账号,可以去www.sm.ms去注册一个账号,然后生成一个Token!\n\n最后再回到设置页面,左下角验证图片上传选项,提示成功上传图片即可。如果失败检查配置文件。\n\n\n\n\n\n\n\n\n\n","source":"_posts/学习typora.md","raw":"---\ntitle: 学习typora\ndate: 2022-05-26 16:30:12\ncategories: \n- 其他\n---\n\n# 标题\n\n加一个#和空格表示一级标题,加两个##表示二级标题,类似的,可以到六级标题。(注意#后与标题间要有个空格),而markdown是不需要的。\n\n\n\n# 段落\n\n按换行符enter可以建立新的一行,按shift+enter可以创建一个比段落间距更小的行间距。\n\n\n\n# 字体\n\n### 斜体\n\n以* 或_ 括住需要改变字体的文段,例如:\n\n*这是我要改变的斜体1*, _这是我要改变的斜体二_。\n\n### 加粗\n\n以** 或_ _括住的字体就是加粗字体,例如:\n\n**加粗字体1**,__加粗字体二__。\n\n### 删除线\n\n开头用~~,结尾也用,例如:\n\n~~这是错误文字~~\n\n### 下划线\n\n使用HTML标签< u >和< /u >,中间没有空格,例如:\n\n<u>这是下划线</u>\n\n### 高亮\n\n用==括住的内容就是高亮内容,需要自己在偏好设置里面打开这项功能,例如:\n\n==这是高亮内容==\n\n\n\n# 代码\n\n行内输入代码块快捷键:Ctrl+shift+K\n\n- 1.开头```+语言名,开启代码块,换行键\n\n```c++\n#include <iostream>\nusing namespace std;\n\nint main()\n{\n cout<<\"这是一个测试文件\";\n}\n```\n\n- 2.用`包括起来的也是表示代码\n\n `这也可以显示成代码`\n\n\n\n# 分割线\n\n输入···按换行建换行,即可绘制一条水平线,如\n\n···\n\n\n\n# 超链接\n\n用[ ]括住要超链接的内容,然后后面用( )括住超链接的地址,如:\n\n[我的github](https://github.com/stuBirdFly/stuBirdFly.github.io)\n\n\n\n# URLs\n\n用<>括住url,可手动设置url,对于标准的urls会自动识别,如:\n\n<www.baidu.com>\n\n\n\n# 图片\n\n- 1.手动添加:和添加超链接方式区别不大,前面加一个感叹号!。如\n\n \n\n \n\n- 2.直接拖曳进来,自动生成链接。\n\n\n\n# Typora图床设置\n\n进入Typora偏好设置,点击图像,**这里注意:Typora的版本必须在0.9.86以上**才可以在Typora中集成图床。设置如下图所示:\n\n\n\n下载更新完以后打开配置文件,按下图格式修改:\n\n\n\n**注意:\"smms\"后有个逗号。**\n\n如果没有图床账号,可以去www.sm.ms去注册一个账号,然后生成一个Token!\n\n最后再回到设置页面,左下角验证图片上传选项,提示成功上传图片即可。如果失败检查配置文件。\n\n\n\n\n\n\n\n\n\n","slug":"学习typora","published":1,"updated":"2022-05-27T07:43:55.328Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl42mhu3w0003r8vl4fgn8wkr","content":"<h1 id=\"标题\"><a href=\"#标题\" class=\"headerlink\" title=\"标题\"></a>标题</h1><p>加一个#和空格表示一级标题,加两个##表示二级标题,类似的,可以到六级标题。(注意#后与标题间要有个空格),而markdown是不需要的。</p>\n<h1 id=\"段落\"><a href=\"#段落\" class=\"headerlink\" title=\"段落\"></a>段落</h1><p>按换行符enter可以建立新的一行,按shift+enter可以创建一个比段落间距更小的行间距。</p>\n<h1 id=\"字体\"><a href=\"#字体\" class=\"headerlink\" title=\"字体\"></a>字体</h1><h3 id=\"斜体\"><a href=\"#斜体\" class=\"headerlink\" title=\"斜体\"></a>斜体</h3><p>以* 或_ 括住需要改变字体的文段,例如:</p>\n<p><em>这是我要改变的斜体1</em>, _这是我要改变的斜体二_。</p>\n<h3 id=\"加粗\"><a href=\"#加粗\" class=\"headerlink\" title=\"加粗\"></a>加粗</h3><p>以** 或_ _括住的字体就是加粗字体,例如:</p>\n<p><strong>加粗字体1</strong>,__加粗字体二__。</p>\n<h3 id=\"删除线\"><a href=\"#删除线\" class=\"headerlink\" title=\"删除线\"></a>删除线</h3><p>开头用~~,结尾也用,例如:</p>\n<p><del>这是错误文字</del></p>\n<h3 id=\"下划线\"><a href=\"#下划线\" class=\"headerlink\" title=\"下划线\"></a>下划线</h3><p>使用HTML标签< u >和< /u >,中间没有空格,例如:</p>\n<p><u>这是下划线</u></p>\n<h3 id=\"高亮\"><a href=\"#高亮\" class=\"headerlink\" title=\"高亮\"></a>高亮</h3><p>用==括住的内容就是高亮内容,需要自己在偏好设置里面打开这项功能,例如:</p>\n<p>==这是高亮内容==</p>\n<h1 id=\"代码\"><a href=\"#代码\" class=\"headerlink\" title=\"代码\"></a>代码</h1><p>行内输入代码块快捷键:Ctrl+shift+K</p>\n<ul>\n<li>1.开头```+语言名,开启代码块,换行键</li>\n</ul>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"meta\">#<span class=\"keyword\">include</span> <span class=\"string\"><iostream></span></span></span><br><span class=\"line\"><span class=\"keyword\">using</span> <span class=\"keyword\">namespace</span> std;</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">()</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\"> cout<<<span class=\"string\">"这是一个测试文件"</span>;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<ul>\n<li><p>2.用`包括起来的也是表示代码</p>\n<p><code>这也可以显示成代码</code></p>\n</li>\n</ul>\n<h1 id=\"分割线\"><a href=\"#分割线\" class=\"headerlink\" title=\"分割线\"></a>分割线</h1><p>输入···按换行建换行,即可绘制一条水平线,如</p>\n<p>···</p>\n<h1 id=\"超链接\"><a href=\"#超链接\" class=\"headerlink\" title=\"超链接\"></a>超链接</h1><p>用[ ]括住要超链接的内容,然后后面用( )括住超链接的地址,如:</p>\n<p>[我的github](<a href=\"https://github.com/stuBirdFly/stuBirdFly.github.io%EF%BC%89\">https://github.com/stuBirdFly/stuBirdFly.github.io)</a></p>\n<h1 id=\"URLs\"><a href=\"#URLs\" class=\"headerlink\" title=\"URLs\"></a>URLs</h1><p>用<>括住url,可手动设置url,对于标准的urls会自动识别,如:</p>\n<p><<a href=\"http://www.baidu.com>/\">www.baidu.com></a></p>\n<h1 id=\"图片\"><a href=\"#图片\" class=\"headerlink\" title=\"图片\"></a>图片</h1><ul>\n<li><p>1.手动添加:和添加超链接方式区别不大,前面加一个感叹号!。如</p>\n<p><img src=\"%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80\" alt=\"图片名称\"></p>\n</li>\n<li><p>2.直接拖曳进来,自动生成链接。</p>\n</li>\n</ul>\n<h1 id=\"Typora图床设置\"><a href=\"#Typora图床设置\" class=\"headerlink\" title=\"Typora图床设置\"></a>Typora图床设置</h1><p>进入Typora偏好设置,点击图像,<strong>这里注意:Typora的版本必须在0.9.86以上</strong>才可以在Typora中集成图床。设置如下图所示:</p>\n<p><img src=\"https://s2.loli.net/2022/05/26/ECM8DWwkJxBuf4X.png\" alt=\"设置图片\"></p>\n<p>下载更新完以后打开配置文件,按下图格式修改:</p>\n<p><img src=\"https://s2.loli.net/2022/05/26/IqFP4u9bdBUZfTr.png\" alt=\"配置文件修改\"></p>\n<p><strong>注意:”smms”后有个逗号。</strong></p>\n<p>如果没有图床账号,可以去<a href=\"http://www.sm.ms去注册一个账号,然后生成一个token!/\">www.sm.ms去注册一个账号,然后生成一个Token!</a></p>\n<p>最后再回到设置页面,左下角验证图片上传选项,提示成功上传图片即可。如果失败检查配置文件。</p>\n","site":{"data":{}},"excerpt":"","more":"<h1 id=\"标题\"><a href=\"#标题\" class=\"headerlink\" title=\"标题\"></a>标题</h1><p>加一个#和空格表示一级标题,加两个##表示二级标题,类似的,可以到六级标题。(注意#后与标题间要有个空格),而markdown是不需要的。</p>\n<h1 id=\"段落\"><a href=\"#段落\" class=\"headerlink\" title=\"段落\"></a>段落</h1><p>按换行符enter可以建立新的一行,按shift+enter可以创建一个比段落间距更小的行间距。</p>\n<h1 id=\"字体\"><a href=\"#字体\" class=\"headerlink\" title=\"字体\"></a>字体</h1><h3 id=\"斜体\"><a href=\"#斜体\" class=\"headerlink\" title=\"斜体\"></a>斜体</h3><p>以* 或_ 括住需要改变字体的文段,例如:</p>\n<p><em>这是我要改变的斜体1</em>, _这是我要改变的斜体二_。</p>\n<h3 id=\"加粗\"><a href=\"#加粗\" class=\"headerlink\" title=\"加粗\"></a>加粗</h3><p>以** 或_ _括住的字体就是加粗字体,例如:</p>\n<p><strong>加粗字体1</strong>,__加粗字体二__。</p>\n<h3 id=\"删除线\"><a href=\"#删除线\" class=\"headerlink\" title=\"删除线\"></a>删除线</h3><p>开头用~~,结尾也用,例如:</p>\n<p><del>这是错误文字</del></p>\n<h3 id=\"下划线\"><a href=\"#下划线\" class=\"headerlink\" title=\"下划线\"></a>下划线</h3><p>使用HTML标签< u >和< /u >,中间没有空格,例如:</p>\n<p><u>这是下划线</u></p>\n<h3 id=\"高亮\"><a href=\"#高亮\" class=\"headerlink\" title=\"高亮\"></a>高亮</h3><p>用==括住的内容就是高亮内容,需要自己在偏好设置里面打开这项功能,例如:</p>\n<p>==这是高亮内容==</p>\n<h1 id=\"代码\"><a href=\"#代码\" class=\"headerlink\" title=\"代码\"></a>代码</h1><p>行内输入代码块快捷键:Ctrl+shift+K</p>\n<ul>\n<li>1.开头```+语言名,开启代码块,换行键</li>\n</ul>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"meta\">#<span class=\"keyword\">include</span> <span class=\"string\"><iostream></span></span></span><br><span class=\"line\"><span class=\"keyword\">using</span> <span class=\"keyword\">namespace</span> std;</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">()</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\"> cout<<<span class=\"string\">"这是一个测试文件"</span>;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<ul>\n<li><p>2.用`包括起来的也是表示代码</p>\n<p><code>这也可以显示成代码</code></p>\n</li>\n</ul>\n<h1 id=\"分割线\"><a href=\"#分割线\" class=\"headerlink\" title=\"分割线\"></a>分割线</h1><p>输入···按换行建换行,即可绘制一条水平线,如</p>\n<p>···</p>\n<h1 id=\"超链接\"><a href=\"#超链接\" class=\"headerlink\" title=\"超链接\"></a>超链接</h1><p>用[ ]括住要超链接的内容,然后后面用( )括住超链接的地址,如:</p>\n<p>[我的github](<a href=\"https://github.com/stuBirdFly/stuBirdFly.github.io%EF%BC%89\">https://github.com/stuBirdFly/stuBirdFly.github.io)</a></p>\n<h1 id=\"URLs\"><a href=\"#URLs\" class=\"headerlink\" title=\"URLs\"></a>URLs</h1><p>用<>括住url,可手动设置url,对于标准的urls会自动识别,如:</p>\n<p><<a href=\"http://www.baidu.com>/\">www.baidu.com></a></p>\n<h1 id=\"图片\"><a href=\"#图片\" class=\"headerlink\" title=\"图片\"></a>图片</h1><ul>\n<li><p>1.手动添加:和添加超链接方式区别不大,前面加一个感叹号!。如</p>\n<p><img src=\"%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80\" alt=\"图片名称\"></p>\n</li>\n<li><p>2.直接拖曳进来,自动生成链接。</p>\n</li>\n</ul>\n<h1 id=\"Typora图床设置\"><a href=\"#Typora图床设置\" class=\"headerlink\" title=\"Typora图床设置\"></a>Typora图床设置</h1><p>进入Typora偏好设置,点击图像,<strong>这里注意:Typora的版本必须在0.9.86以上</strong>才可以在Typora中集成图床。设置如下图所示:</p>\n<p><img src=\"https://s2.loli.net/2022/05/26/ECM8DWwkJxBuf4X.png\" alt=\"设置图片\"></p>\n<p>下载更新完以后打开配置文件,按下图格式修改:</p>\n<p><img src=\"https://s2.loli.net/2022/05/26/IqFP4u9bdBUZfTr.png\" alt=\"配置文件修改\"></p>\n<p><strong>注意:”smms”后有个逗号。</strong></p>\n<p>如果没有图床账号,可以去<a href=\"http://www.sm.ms去注册一个账号,然后生成一个token!/\">www.sm.ms去注册一个账号,然后生成一个Token!</a></p>\n<p>最后再回到设置页面,左下角验证图片上传选项,提示成功上传图片即可。如果失败检查配置文件。</p>\n"},{"title":"类模板","date":"2022-05-27T07:48:27.000Z","_content":"\n# 类模板的概念\n\n类模板是用来生成类的模板,在编译阶段,编译器会根据类模板的使用情况创建出**仅部分成员数据类型,和部分成员函数的参数类型不同**,其他完全相同的若干类。\n\n\n\n# 类模板的使用\n\n**注意:类模板的定义和声明放在同一个头文件中,而不要单独把定义放在一个.cpp文件中,这样会导致连接错误。\n\n## 类模板的声明\n\n```c++\ntemplate<typename T,...>\nclass 类名\n{\n 成员\n};\n```\n\n如:\n\n```c++\ntemplate<typename T, typename N>\nclass MyArray\n{\n\nprivate:\n\tT data[20];//用T表示一个大小为20的数组\n\tN n;\n\tint len;\npublic:\n\t//构造函数\n\tMyArray(N n);\n\t//访问类的private成员\n\tT indexof(int index);\n\tvoid addValue(T value);\n\tN getPara();\n\n};\n\ntemplate<typename T, typename N>\nMyArray<T,N>::MyArray(N num)\n{\n\tthis->len = 0;\n\tthis->n = num;\n};\n\ntemplate<typename T, typename N>\nT MyArray<T, N>::indexof(int index)\n{\n\treturn this->data[index];\n};\n\ntemplate<typename T, typename N>\nN MyArray<T, N>::getPara() \n{\n\treturn this->n;\n};\n\ntemplate<typename T, typename N>\nvoid MyArray<T, N>::addValue(T value)\n{\n\tthis->data[len] = value;\n\tlen++;\n};\n```\n\n\n\n# 类模板的特化与偏特化\n\n类模板的特化是指在实例化类模板的时候,对特定类型的泛型进行特殊的处理。 \n\n特化与偏特化的区别在于:**特化会指定所有的泛型,偏特化只指定部分泛型。**\n\n格式:\n\n```c++\ntemplate<指定类型(如:int),typename T,...不需特化的泛型...>\nclass 类名<指定类型,...,不需特化的泛型名>\n{\n 类成员 \n};\n```\n\n例如:\n\n```c++\n//偏特化注意与之前的类模板参数数量保持一致\ntemplate<typename T>\nclass MyArray<char,T>\n{\npublic:\n\tMyArray();\n\n};\n\ntemplate<typename T>\nMyArray<char, T>::MyArray() \n{\n\tcout << \"类模板的偏特化\" << endl;\n};\n\n```\n\n","source":"_posts/类模板.md","raw":"---\ntitle: 类模板\ndate: 2022-05-27 15:48:27\ncategories:\n- c++\n---\n\n# 类模板的概念\n\n类模板是用来生成类的模板,在编译阶段,编译器会根据类模板的使用情况创建出**仅部分成员数据类型,和部分成员函数的参数类型不同**,其他完全相同的若干类。\n\n\n\n# 类模板的使用\n\n**注意:类模板的定义和声明放在同一个头文件中,而不要单独把定义放在一个.cpp文件中,这样会导致连接错误。\n\n## 类模板的声明\n\n```c++\ntemplate<typename T,...>\nclass 类名\n{\n 成员\n};\n```\n\n如:\n\n```c++\ntemplate<typename T, typename N>\nclass MyArray\n{\n\nprivate:\n\tT data[20];//用T表示一个大小为20的数组\n\tN n;\n\tint len;\npublic:\n\t//构造函数\n\tMyArray(N n);\n\t//访问类的private成员\n\tT indexof(int index);\n\tvoid addValue(T value);\n\tN getPara();\n\n};\n\ntemplate<typename T, typename N>\nMyArray<T,N>::MyArray(N num)\n{\n\tthis->len = 0;\n\tthis->n = num;\n};\n\ntemplate<typename T, typename N>\nT MyArray<T, N>::indexof(int index)\n{\n\treturn this->data[index];\n};\n\ntemplate<typename T, typename N>\nN MyArray<T, N>::getPara() \n{\n\treturn this->n;\n};\n\ntemplate<typename T, typename N>\nvoid MyArray<T, N>::addValue(T value)\n{\n\tthis->data[len] = value;\n\tlen++;\n};\n```\n\n\n\n# 类模板的特化与偏特化\n\n类模板的特化是指在实例化类模板的时候,对特定类型的泛型进行特殊的处理。 \n\n特化与偏特化的区别在于:**特化会指定所有的泛型,偏特化只指定部分泛型。**\n\n格式:\n\n```c++\ntemplate<指定类型(如:int),typename T,...不需特化的泛型...>\nclass 类名<指定类型,...,不需特化的泛型名>\n{\n 类成员 \n};\n```\n\n例如:\n\n```c++\n//偏特化注意与之前的类模板参数数量保持一致\ntemplate<typename T>\nclass MyArray<char,T>\n{\npublic:\n\tMyArray();\n\n};\n\ntemplate<typename T>\nMyArray<char, T>::MyArray() \n{\n\tcout << \"类模板的偏特化\" << endl;\n};\n\n```\n\n","slug":"类模板","published":1,"updated":"2022-05-27T11:01:57.881Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl42mhu3y0005r8vlaptd88es","content":"<h1 id=\"类模板的概念\"><a href=\"#类模板的概念\" class=\"headerlink\" title=\"类模板的概念\"></a>类模板的概念</h1><p>类模板是用来生成类的模板,在编译阶段,编译器会根据类模板的使用情况创建出<strong>仅部分成员数据类型,和部分成员函数的参数类型不同</strong>,其他完全相同的若干类。</p>\n<h1 id=\"类模板的使用\"><a href=\"#类模板的使用\" class=\"headerlink\" title=\"类模板的使用\"></a>类模板的使用</h1><p>**注意:类模板的定义和声明放在同一个头文件中,而不要单独把定义放在一个.cpp文件中,这样会导致连接错误。</p>\n<h2 id=\"类模板的声明\"><a href=\"#类模板的声明\" class=\"headerlink\" title=\"类模板的声明\"></a>类模板的声明</h2><figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T,...></span><br><span class=\"line\"><span class=\"keyword\">class</span> 类名</span><br><span class=\"line\">{</span><br><span class=\"line\"> 成员</span><br><span class=\"line\">};</span><br></pre></td></tr></table></figure>\n\n<p>如:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br><span class=\"line\">17</span><br><span class=\"line\">18</span><br><span class=\"line\">19</span><br><span class=\"line\">20</span><br><span class=\"line\">21</span><br><span class=\"line\">22</span><br><span class=\"line\">23</span><br><span class=\"line\">24</span><br><span class=\"line\">25</span><br><span class=\"line\">26</span><br><span class=\"line\">27</span><br><span class=\"line\">28</span><br><span class=\"line\">29</span><br><span class=\"line\">30</span><br><span class=\"line\">31</span><br><span class=\"line\">32</span><br><span class=\"line\">33</span><br><span class=\"line\">34</span><br><span class=\"line\">35</span><br><span class=\"line\">36</span><br><span class=\"line\">37</span><br><span class=\"line\">38</span><br><span class=\"line\">39</span><br><span class=\"line\">40</span><br><span class=\"line\">41</span><br><span class=\"line\">42</span><br><span class=\"line\">43</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\"><span class=\"keyword\">class</span> <span class=\"title class_\">MyArray</span></span><br><span class=\"line\">{</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">private</span>:</span><br><span class=\"line\">\tT data[<span class=\"number\">20</span>];<span class=\"comment\">//用T表示一个大小为20的数组</span></span><br><span class=\"line\">\tN n;</span><br><span class=\"line\">\t<span class=\"type\">int</span> len;</span><br><span class=\"line\"><span class=\"keyword\">public</span>:</span><br><span class=\"line\">\t<span class=\"comment\">//构造函数</span></span><br><span class=\"line\">\t<span class=\"built_in\">MyArray</span>(N n);</span><br><span class=\"line\">\t<span class=\"comment\">//访问类的private成员</span></span><br><span class=\"line\">\t<span class=\"function\">T <span class=\"title\">indexof</span><span class=\"params\">(<span class=\"type\">int</span> index)</span></span>;</span><br><span class=\"line\">\t<span class=\"function\"><span class=\"type\">void</span> <span class=\"title\">addValue</span><span class=\"params\">(T value)</span></span>;</span><br><span class=\"line\">\t<span class=\"function\">N <span class=\"title\">getPara</span><span class=\"params\">()</span></span>;</span><br><span class=\"line\"></span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\">MyArray<T,N>::<span class=\"built_in\">MyArray</span>(N num)</span><br><span class=\"line\">{</span><br><span class=\"line\">\t<span class=\"keyword\">this</span>->len = <span class=\"number\">0</span>;</span><br><span class=\"line\">\t<span class=\"keyword\">this</span>->n = num;</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\">T MyArray<T, N>::<span class=\"built_in\">indexof</span>(<span class=\"type\">int</span> index)</span><br><span class=\"line\">{</span><br><span class=\"line\">\t<span class=\"keyword\">return</span> <span class=\"keyword\">this</span>->data[index];</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\">N MyArray<T, N>::<span class=\"built_in\">getPara</span>() </span><br><span class=\"line\">{</span><br><span class=\"line\">\t<span class=\"keyword\">return</span> <span class=\"keyword\">this</span>->n;</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\"><span class=\"type\">void</span> MyArray<T, N>::<span class=\"built_in\">addValue</span>(T value)</span><br><span class=\"line\">{</span><br><span class=\"line\">\t<span class=\"keyword\">this</span>->data[len] = value;</span><br><span class=\"line\">\tlen++;</span><br><span class=\"line\">};</span><br></pre></td></tr></table></figure>\n\n\n\n<h1 id=\"类模板的特化与偏特化\"><a href=\"#类模板的特化与偏特化\" class=\"headerlink\" title=\"类模板的特化与偏特化\"></a>类模板的特化与偏特化</h1><p>类模板的特化是指在实例化类模板的时候,对特定类型的泛型进行特殊的处理。 </p>\n<p>特化与偏特化的区别在于:<strong>特化会指定所有的泛型,偏特化只指定部分泛型。</strong></p>\n<p>格式:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><指定类型(如:<span class=\"type\">int</span>),<span class=\"keyword\">typename</span> T,...不需特化的泛型...></span><br><span class=\"line\"><span class=\"keyword\">class</span> 类名<指定类型,...,不需特化的泛型名></span><br><span class=\"line\">{</span><br><span class=\"line\"> 类成员 </span><br><span class=\"line\">};</span><br></pre></td></tr></table></figure>\n\n<p>例如:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"comment\">//偏特化注意与之前的类模板参数数量保持一致</span></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T></span><br><span class=\"line\"><span class=\"keyword\">class</span> <span class=\"title class_\">MyArray</span><<span class=\"type\">char</span>,T></span><br><span class=\"line\">{</span><br><span class=\"line\"><span class=\"keyword\">public</span>:</span><br><span class=\"line\">\t<span class=\"built_in\">MyArray</span>();</span><br><span class=\"line\"></span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T></span><br><span class=\"line\">MyArray<<span class=\"type\">char</span>, T>::<span class=\"built_in\">MyArray</span>() </span><br><span class=\"line\">{</span><br><span class=\"line\">\tcout << <span class=\"string\">"类模板的偏特化"</span> << endl;</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br></pre></td></tr></table></figure>\n\n","site":{"data":{}},"excerpt":"","more":"<h1 id=\"类模板的概念\"><a href=\"#类模板的概念\" class=\"headerlink\" title=\"类模板的概念\"></a>类模板的概念</h1><p>类模板是用来生成类的模板,在编译阶段,编译器会根据类模板的使用情况创建出<strong>仅部分成员数据类型,和部分成员函数的参数类型不同</strong>,其他完全相同的若干类。</p>\n<h1 id=\"类模板的使用\"><a href=\"#类模板的使用\" class=\"headerlink\" title=\"类模板的使用\"></a>类模板的使用</h1><p>**注意:类模板的定义和声明放在同一个头文件中,而不要单独把定义放在一个.cpp文件中,这样会导致连接错误。</p>\n<h2 id=\"类模板的声明\"><a href=\"#类模板的声明\" class=\"headerlink\" title=\"类模板的声明\"></a>类模板的声明</h2><figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T,...></span><br><span class=\"line\"><span class=\"keyword\">class</span> 类名</span><br><span class=\"line\">{</span><br><span class=\"line\"> 成员</span><br><span class=\"line\">};</span><br></pre></td></tr></table></figure>\n\n<p>如:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br><span class=\"line\">17</span><br><span class=\"line\">18</span><br><span class=\"line\">19</span><br><span class=\"line\">20</span><br><span class=\"line\">21</span><br><span class=\"line\">22</span><br><span class=\"line\">23</span><br><span class=\"line\">24</span><br><span class=\"line\">25</span><br><span class=\"line\">26</span><br><span class=\"line\">27</span><br><span class=\"line\">28</span><br><span class=\"line\">29</span><br><span class=\"line\">30</span><br><span class=\"line\">31</span><br><span class=\"line\">32</span><br><span class=\"line\">33</span><br><span class=\"line\">34</span><br><span class=\"line\">35</span><br><span class=\"line\">36</span><br><span class=\"line\">37</span><br><span class=\"line\">38</span><br><span class=\"line\">39</span><br><span class=\"line\">40</span><br><span class=\"line\">41</span><br><span class=\"line\">42</span><br><span class=\"line\">43</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\"><span class=\"keyword\">class</span> <span class=\"title class_\">MyArray</span></span><br><span class=\"line\">{</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">private</span>:</span><br><span class=\"line\">\tT data[<span class=\"number\">20</span>];<span class=\"comment\">//用T表示一个大小为20的数组</span></span><br><span class=\"line\">\tN n;</span><br><span class=\"line\">\t<span class=\"type\">int</span> len;</span><br><span class=\"line\"><span class=\"keyword\">public</span>:</span><br><span class=\"line\">\t<span class=\"comment\">//构造函数</span></span><br><span class=\"line\">\t<span class=\"built_in\">MyArray</span>(N n);</span><br><span class=\"line\">\t<span class=\"comment\">//访问类的private成员</span></span><br><span class=\"line\">\t<span class=\"function\">T <span class=\"title\">indexof</span><span class=\"params\">(<span class=\"type\">int</span> index)</span></span>;</span><br><span class=\"line\">\t<span class=\"function\"><span class=\"type\">void</span> <span class=\"title\">addValue</span><span class=\"params\">(T value)</span></span>;</span><br><span class=\"line\">\t<span class=\"function\">N <span class=\"title\">getPara</span><span class=\"params\">()</span></span>;</span><br><span class=\"line\"></span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\">MyArray<T,N>::<span class=\"built_in\">MyArray</span>(N num)</span><br><span class=\"line\">{</span><br><span class=\"line\">\t<span class=\"keyword\">this</span>->len = <span class=\"number\">0</span>;</span><br><span class=\"line\">\t<span class=\"keyword\">this</span>->n = num;</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\">T MyArray<T, N>::<span class=\"built_in\">indexof</span>(<span class=\"type\">int</span> index)</span><br><span class=\"line\">{</span><br><span class=\"line\">\t<span class=\"keyword\">return</span> <span class=\"keyword\">this</span>->data[index];</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\">N MyArray<T, N>::<span class=\"built_in\">getPara</span>() </span><br><span class=\"line\">{</span><br><span class=\"line\">\t<span class=\"keyword\">return</span> <span class=\"keyword\">this</span>->n;</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T, <span class=\"keyword\">typename</span> N></span><br><span class=\"line\"><span class=\"type\">void</span> MyArray<T, N>::<span class=\"built_in\">addValue</span>(T value)</span><br><span class=\"line\">{</span><br><span class=\"line\">\t<span class=\"keyword\">this</span>->data[len] = value;</span><br><span class=\"line\">\tlen++;</span><br><span class=\"line\">};</span><br></pre></td></tr></table></figure>\n\n\n\n<h1 id=\"类模板的特化与偏特化\"><a href=\"#类模板的特化与偏特化\" class=\"headerlink\" title=\"类模板的特化与偏特化\"></a>类模板的特化与偏特化</h1><p>类模板的特化是指在实例化类模板的时候,对特定类型的泛型进行特殊的处理。 </p>\n<p>特化与偏特化的区别在于:<strong>特化会指定所有的泛型,偏特化只指定部分泛型。</strong></p>\n<p>格式:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">template</span><指定类型(如:<span class=\"type\">int</span>),<span class=\"keyword\">typename</span> T,...不需特化的泛型...></span><br><span class=\"line\"><span class=\"keyword\">class</span> 类名<指定类型,...,不需特化的泛型名></span><br><span class=\"line\">{</span><br><span class=\"line\"> 类成员 </span><br><span class=\"line\">};</span><br></pre></td></tr></table></figure>\n\n<p>例如:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"comment\">//偏特化注意与之前的类模板参数数量保持一致</span></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T></span><br><span class=\"line\"><span class=\"keyword\">class</span> <span class=\"title class_\">MyArray</span><<span class=\"type\">char</span>,T></span><br><span class=\"line\">{</span><br><span class=\"line\"><span class=\"keyword\">public</span>:</span><br><span class=\"line\">\t<span class=\"built_in\">MyArray</span>();</span><br><span class=\"line\"></span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"keyword\">template</span><<span class=\"keyword\">typename</span> T></span><br><span class=\"line\">MyArray<<span class=\"type\">char</span>, T>::<span class=\"built_in\">MyArray</span>() </span><br><span class=\"line\">{</span><br><span class=\"line\">\tcout << <span class=\"string\">"类模板的偏特化"</span> << endl;</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br></pre></td></tr></table></figure>\n\n"},{"title":"c++花括号","date":"2022-06-06T10:42:45.000Z","_content":"\n\t今天看代码的时候,发现有些地方的if判断删除了,但是花括号没有删除,不知道会不会影响到里面代码的执行,如:\n\n```c++\nclass Dog\n{\npublic:\n Dog();\n ~Dog();\n};\n\nDog::Dog()\n{\n cout<<\"生成一条狗\"<<endl;\n}\n\nDog::~Dog()\n{\n cout<<\"毁灭一条狗\"<<endl;\n}\n\nint main(int argc, char *args[])\n{\n cout<<\"hello world\"<<endl;\n // if(a==b)\n {\n \tDog d; \n\t}\n cout<<\"hello run last\"<<endl;\n}\n \n```\n\n运行结果如下:\n\n\n\n再去掉花括号:\n\n```c++\nclass Dog\n{\npublic:\n Dog();\n ~Dog();\n};\n\nDog::Dog()\n{\n cout<<\"生成一条狗\"<<endl;\n}\n\nDog::~Dog()\n{\n cout<<\"毁灭一条狗\"<<endl;\n}\n\nint main(int argc, char *args[])\n{\n cout<<\"hello world\"<<endl;\n // if(a==b)\n \n Dog d; \n\t\n cout<<\"hello run last\"<<endl;\n}\n```\n\n运行结果如下:\n\n\n\n## 结论\n\n\t花括号内的代码是一定会执行的,但是在括号内创建的对象,会在执行完括号内的代码后进行析构。\n","source":"_posts/c-花括号.md","raw":"---\ntitle: c++花括号\ndate: 2022-06-06 18:42:45\ncategories:\n- c++\n---\n\n\t今天看代码的时候,发现有些地方的if判断删除了,但是花括号没有删除,不知道会不会影响到里面代码的执行,如:\n\n```c++\nclass Dog\n{\npublic:\n Dog();\n ~Dog();\n};\n\nDog::Dog()\n{\n cout<<\"生成一条狗\"<<endl;\n}\n\nDog::~Dog()\n{\n cout<<\"毁灭一条狗\"<<endl;\n}\n\nint main(int argc, char *args[])\n{\n cout<<\"hello world\"<<endl;\n // if(a==b)\n {\n \tDog d; \n\t}\n cout<<\"hello run last\"<<endl;\n}\n \n```\n\n运行结果如下:\n\n\n\n再去掉花括号:\n\n```c++\nclass Dog\n{\npublic:\n Dog();\n ~Dog();\n};\n\nDog::Dog()\n{\n cout<<\"生成一条狗\"<<endl;\n}\n\nDog::~Dog()\n{\n cout<<\"毁灭一条狗\"<<endl;\n}\n\nint main(int argc, char *args[])\n{\n cout<<\"hello world\"<<endl;\n // if(a==b)\n \n Dog d; \n\t\n cout<<\"hello run last\"<<endl;\n}\n```\n\n运行结果如下:\n\n\n\n## 结论\n\n\t花括号内的代码是一定会执行的,但是在括号内创建的对象,会在执行完括号内的代码后进行析构。\n","slug":"c-花括号","published":1,"updated":"2022-06-06T10:59:11.658Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl42mhu3z0006r8vl2gsdhhrd","content":"<p> 今天看代码的时候,发现有些地方的if判断删除了,但是花括号没有删除,不知道会不会影响到里面代码的执行,如:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br><span class=\"line\">17</span><br><span class=\"line\">18</span><br><span class=\"line\">19</span><br><span class=\"line\">20</span><br><span class=\"line\">21</span><br><span class=\"line\">22</span><br><span class=\"line\">23</span><br><span class=\"line\">24</span><br><span class=\"line\">25</span><br><span class=\"line\">26</span><br><span class=\"line\">27</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">class</span> <span class=\"title class_\">Dog</span></span><br><span class=\"line\">{</span><br><span class=\"line\"><span class=\"keyword\">public</span>:</span><br><span class=\"line\"> <span class=\"built_in\">Dog</span>();</span><br><span class=\"line\"> ~<span class=\"built_in\">Dog</span>();</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\">Dog::<span class=\"built_in\">Dog</span>()</span><br><span class=\"line\">{</span><br><span class=\"line\"> cout<<<span class=\"string\">"生成一条狗"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"></span><br><span class=\"line\">Dog::~<span class=\"built_in\">Dog</span>()</span><br><span class=\"line\">{</span><br><span class=\"line\"> cout<<<span class=\"string\">"毁灭一条狗"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\"> cout<<<span class=\"string\">"hello world"</span><<endl;</span><br><span class=\"line\"> <span class=\"comment\">// if(a==b)</span></span><br><span class=\"line\"> {</span><br><span class=\"line\"> \tDog d; </span><br><span class=\"line\">\t}</span><br><span class=\"line\"> cout<<<span class=\"string\">"hello run last"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"> </span><br></pre></td></tr></table></figure>\n\n<p>运行结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/06/iMdg6eamBAtH43C.png\" alt=\"image-20220606185543769\"></p>\n<p>再去掉花括号:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br><span class=\"line\">17</span><br><span class=\"line\">18</span><br><span class=\"line\">19</span><br><span class=\"line\">20</span><br><span class=\"line\">21</span><br><span class=\"line\">22</span><br><span class=\"line\">23</span><br><span class=\"line\">24</span><br><span class=\"line\">25</span><br><span class=\"line\">26</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">class</span> <span class=\"title class_\">Dog</span></span><br><span class=\"line\">{</span><br><span class=\"line\"><span class=\"keyword\">public</span>:</span><br><span class=\"line\"> <span class=\"built_in\">Dog</span>();</span><br><span class=\"line\"> ~<span class=\"built_in\">Dog</span>();</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\">Dog::<span class=\"built_in\">Dog</span>()</span><br><span class=\"line\">{</span><br><span class=\"line\"> cout<<<span class=\"string\">"生成一条狗"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"></span><br><span class=\"line\">Dog::~<span class=\"built_in\">Dog</span>()</span><br><span class=\"line\">{</span><br><span class=\"line\"> cout<<<span class=\"string\">"毁灭一条狗"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\"> cout<<<span class=\"string\">"hello world"</span><<endl;</span><br><span class=\"line\"> <span class=\"comment\">// if(a==b)</span></span><br><span class=\"line\"> </span><br><span class=\"line\"> Dog d; </span><br><span class=\"line\">\t</span><br><span class=\"line\"> cout<<<span class=\"string\">"hello run last"</span><<endl;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>运行结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/06/JEX2ROs3zHWnuwM.png\" alt=\"image-20220606185649437\"></p>\n<h2 id=\"结论\"><a href=\"#结论\" class=\"headerlink\" title=\"结论\"></a>结论</h2><p> 花括号内的代码是一定会执行的,但是在括号内创建的对象,会在执行完括号内的代码后进行析构。</p>\n","site":{"data":{}},"excerpt":"","more":"<p> 今天看代码的时候,发现有些地方的if判断删除了,但是花括号没有删除,不知道会不会影响到里面代码的执行,如:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br><span class=\"line\">17</span><br><span class=\"line\">18</span><br><span class=\"line\">19</span><br><span class=\"line\">20</span><br><span class=\"line\">21</span><br><span class=\"line\">22</span><br><span class=\"line\">23</span><br><span class=\"line\">24</span><br><span class=\"line\">25</span><br><span class=\"line\">26</span><br><span class=\"line\">27</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">class</span> <span class=\"title class_\">Dog</span></span><br><span class=\"line\">{</span><br><span class=\"line\"><span class=\"keyword\">public</span>:</span><br><span class=\"line\"> <span class=\"built_in\">Dog</span>();</span><br><span class=\"line\"> ~<span class=\"built_in\">Dog</span>();</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\">Dog::<span class=\"built_in\">Dog</span>()</span><br><span class=\"line\">{</span><br><span class=\"line\"> cout<<<span class=\"string\">"生成一条狗"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"></span><br><span class=\"line\">Dog::~<span class=\"built_in\">Dog</span>()</span><br><span class=\"line\">{</span><br><span class=\"line\"> cout<<<span class=\"string\">"毁灭一条狗"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\"> cout<<<span class=\"string\">"hello world"</span><<endl;</span><br><span class=\"line\"> <span class=\"comment\">// if(a==b)</span></span><br><span class=\"line\"> {</span><br><span class=\"line\"> \tDog d; </span><br><span class=\"line\">\t}</span><br><span class=\"line\"> cout<<<span class=\"string\">"hello run last"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"> </span><br></pre></td></tr></table></figure>\n\n<p>运行结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/06/iMdg6eamBAtH43C.png\" alt=\"image-20220606185543769\"></p>\n<p>再去掉花括号:</p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br><span class=\"line\">17</span><br><span class=\"line\">18</span><br><span class=\"line\">19</span><br><span class=\"line\">20</span><br><span class=\"line\">21</span><br><span class=\"line\">22</span><br><span class=\"line\">23</span><br><span class=\"line\">24</span><br><span class=\"line\">25</span><br><span class=\"line\">26</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"keyword\">class</span> <span class=\"title class_\">Dog</span></span><br><span class=\"line\">{</span><br><span class=\"line\"><span class=\"keyword\">public</span>:</span><br><span class=\"line\"> <span class=\"built_in\">Dog</span>();</span><br><span class=\"line\"> ~<span class=\"built_in\">Dog</span>();</span><br><span class=\"line\">};</span><br><span class=\"line\"></span><br><span class=\"line\">Dog::<span class=\"built_in\">Dog</span>()</span><br><span class=\"line\">{</span><br><span class=\"line\"> cout<<<span class=\"string\">"生成一条狗"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"></span><br><span class=\"line\">Dog::~<span class=\"built_in\">Dog</span>()</span><br><span class=\"line\">{</span><br><span class=\"line\"> cout<<<span class=\"string\">"毁灭一条狗"</span><<endl;</span><br><span class=\"line\">}</span><br><span class=\"line\"></span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\"> cout<<<span class=\"string\">"hello world"</span><<endl;</span><br><span class=\"line\"> <span class=\"comment\">// if(a==b)</span></span><br><span class=\"line\"> </span><br><span class=\"line\"> Dog d; </span><br><span class=\"line\">\t</span><br><span class=\"line\"> cout<<<span class=\"string\">"hello run last"</span><<endl;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>运行结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/06/JEX2ROs3zHWnuwM.png\" alt=\"image-20220606185649437\"></p>\n<h2 id=\"结论\"><a href=\"#结论\" class=\"headerlink\" title=\"结论\"></a>结论</h2><p> 花括号内的代码是一定会执行的,但是在括号内创建的对象,会在执行完括号内的代码后进行析构。</p>\n"},{"title":"引用的一般用法","date":"2022-06-08T07:13:22.000Z","_content":"\n# 引用&的一般用法\n\n## 引用的基本语法\n\n数据类型 &别名 = 原名\n\n**可以给变量起别名**\n\n```c++\nint main(int argc, char *args[])\n{\n\tint a = 10;\n\tint &b = a;\n\tb = 20;\n\tcout << a;\n}\n```\n\n可以看到结果是20,b作为a的别名,改变b的值就会改变a的值。\n\n\n\n\n\n## 引用的注意事项\n\n- 引用必须初始化\n\n int &b;//**错误的**\n\n- 引用一旦初始化后,就不可以更改了\n\n b作为a的别名以后,不能再作为其他变量的别名了\n\n\n\n## 引用做函数参数\n\n以交换函数来分别对比三种函数参数的结果。\n\n- 值传递\n\n```c++\nvoid swap(int a, int b) \n{\n\tint temp;\n\ttemp = a;\n\ta = b;\n\tb = temp;\n}\nint main(int argc, char *args[])\n{\n\tint a = 20;\n\tint b = 5;\n\t//值传递\n\tswap(a, b);\n\tcout << \"a=\" << a << endl;\n\tcout << \"b=\" << b << endl;\n}\n```\n\n结果如下:\n\n\n\n可以看出,**当值作为函数参数传递时,形参的改变不会影响实参的改变**。\n\n- 地址传递\n\n```c++\nvoid swap(int *a, int *b) \n{\n\tint temp;\n\ttemp = *a;\n\t*a = *b;\n\t*b = temp;\n}\nint main(int argc, char *args[])\n{\n\tint a = 20;\n\tint b = 5;\n\t//值传递\n\tswap(&a, &b);\n\tcout << \"a=\" << a << endl;\n\tcout << \"b=\" << b << endl;\n}\n```\n\n结果如下:\n\n\n\n**当形参是地址时,形参会修饰实参**。\n\n- 引用传递\n\n```c++\nvoid swap(int &a, int &b) \n{\n\tint temp;\n\ttemp = a;\n\ta = b;\n\tb = temp;\n}\nint main(int argc, char *args[])\n{\n\tint c = 20;\n\tint d = 5;\n\t//值传递\n\tswap(c, d);\n\tcout << \"c=\" << c << endl;\n\tcout << \"d=\" << d << endl;\n}\n```\n\n结果如下:\n\n\n\n因为此时a作为c的引用,b作为d的引用,形参改变时也会引起实参的改变,因为此时a就是c,a只是c的一个别名而已,a一改变,c也会改变。\n\n#### 结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。\n","source":"_posts/引用.md","raw":"---\ntitle: 引用的一般用法\ndate: 2022-06-08 15:13:22\ncategories:\n- c++\n---\n\n# 引用&的一般用法\n\n## 引用的基本语法\n\n数据类型 &别名 = 原名\n\n**可以给变量起别名**\n\n```c++\nint main(int argc, char *args[])\n{\n\tint a = 10;\n\tint &b = a;\n\tb = 20;\n\tcout << a;\n}\n```\n\n可以看到结果是20,b作为a的别名,改变b的值就会改变a的值。\n\n\n\n\n\n## 引用的注意事项\n\n- 引用必须初始化\n\n int &b;//**错误的**\n\n- 引用一旦初始化后,就不可以更改了\n\n b作为a的别名以后,不能再作为其他变量的别名了\n\n\n\n## 引用做函数参数\n\n以交换函数来分别对比三种函数参数的结果。\n\n- 值传递\n\n```c++\nvoid swap(int a, int b) \n{\n\tint temp;\n\ttemp = a;\n\ta = b;\n\tb = temp;\n}\nint main(int argc, char *args[])\n{\n\tint a = 20;\n\tint b = 5;\n\t//值传递\n\tswap(a, b);\n\tcout << \"a=\" << a << endl;\n\tcout << \"b=\" << b << endl;\n}\n```\n\n结果如下:\n\n\n\n可以看出,**当值作为函数参数传递时,形参的改变不会影响实参的改变**。\n\n- 地址传递\n\n```c++\nvoid swap(int *a, int *b) \n{\n\tint temp;\n\ttemp = *a;\n\t*a = *b;\n\t*b = temp;\n}\nint main(int argc, char *args[])\n{\n\tint a = 20;\n\tint b = 5;\n\t//值传递\n\tswap(&a, &b);\n\tcout << \"a=\" << a << endl;\n\tcout << \"b=\" << b << endl;\n}\n```\n\n结果如下:\n\n\n\n**当形参是地址时,形参会修饰实参**。\n\n- 引用传递\n\n```c++\nvoid swap(int &a, int &b) \n{\n\tint temp;\n\ttemp = a;\n\ta = b;\n\tb = temp;\n}\nint main(int argc, char *args[])\n{\n\tint c = 20;\n\tint d = 5;\n\t//值传递\n\tswap(c, d);\n\tcout << \"c=\" << c << endl;\n\tcout << \"d=\" << d << endl;\n}\n```\n\n结果如下:\n\n\n\n因为此时a作为c的引用,b作为d的引用,形参改变时也会引起实参的改变,因为此时a就是c,a只是c的一个别名而已,a一改变,c也会改变。\n\n#### 结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。\n","slug":"引用","published":1,"updated":"2022-06-08T07:54:08.137Z","comments":1,"layout":"post","photos":[],"link":"","_id":"cl45apywp0000ckvl6ge9h9g9","content":"<h1 id=\"引用-amp-的一般用法\"><a href=\"#引用-amp-的一般用法\" class=\"headerlink\" title=\"引用&的一般用法\"></a>引用&的一般用法</h1><h2 id=\"引用的基本语法\"><a href=\"#引用的基本语法\" class=\"headerlink\" title=\"引用的基本语法\"></a>引用的基本语法</h2><p>数据类型 &别名 = 原名</p>\n<p><strong>可以给变量起别名</strong></p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> a = <span class=\"number\">10</span>;</span><br><span class=\"line\">\t<span class=\"type\">int</span> &b = a;</span><br><span class=\"line\">\tb = <span class=\"number\">20</span>;</span><br><span class=\"line\">\tcout << a;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>可以看到结果是20,b作为a的别名,改变b的值就会改变a的值。</p>\n<p><img src=\"https://s2.loli.net/2022/06/08/sBYMJfPEuCmAFp9.png\" alt=\"image-20220608151529371\"></p>\n<h2 id=\"引用的注意事项\"><a href=\"#引用的注意事项\" class=\"headerlink\" title=\"引用的注意事项\"></a>引用的注意事项</h2><ul>\n<li><p>引用必须初始化</p>\n<p>int &b;//<strong>错误的</strong></p>\n</li>\n<li><p>引用一旦初始化后,就不可以更改了</p>\n<p>b作为a的别名以后,不能再作为其他变量的别名了</p>\n</li>\n</ul>\n<h2 id=\"引用做函数参数\"><a href=\"#引用做函数参数\" class=\"headerlink\" title=\"引用做函数参数\"></a>引用做函数参数</h2><p>以交换函数来分别对比三种函数参数的结果。</p>\n<ul>\n<li>值传递</li>\n</ul>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"function\"><span class=\"type\">void</span> <span class=\"title\">swap</span><span class=\"params\">(<span class=\"type\">int</span> a, <span class=\"type\">int</span> b)</span> </span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> temp;</span><br><span class=\"line\">\ttemp = a;</span><br><span class=\"line\">\ta = b;</span><br><span class=\"line\">\tb = temp;</span><br><span class=\"line\">}</span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> a = <span class=\"number\">20</span>;</span><br><span class=\"line\">\t<span class=\"type\">int</span> b = <span class=\"number\">5</span>;</span><br><span class=\"line\">\t<span class=\"comment\">//值传递</span></span><br><span class=\"line\">\t<span class=\"built_in\">swap</span>(a, b);</span><br><span class=\"line\">\tcout << <span class=\"string\">"a="</span> << a << endl;</span><br><span class=\"line\">\tcout << <span class=\"string\">"b="</span> << b << endl;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/08/fcaseoO13pBYqAn.png\" alt=\"image-20220608153445057\"></p>\n<p>可以看出,<strong>当值作为函数参数传递时,形参的改变不会影响实参的改变</strong>。</p>\n<ul>\n<li>地址传递</li>\n</ul>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"function\"><span class=\"type\">void</span> <span class=\"title\">swap</span><span class=\"params\">(<span class=\"type\">int</span> *a, <span class=\"type\">int</span> *b)</span> </span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> temp;</span><br><span class=\"line\">\ttemp = *a;</span><br><span class=\"line\">\t*a = *b;</span><br><span class=\"line\">\t*b = temp;</span><br><span class=\"line\">}</span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> a = <span class=\"number\">20</span>;</span><br><span class=\"line\">\t<span class=\"type\">int</span> b = <span class=\"number\">5</span>;</span><br><span class=\"line\">\t<span class=\"comment\">//值传递</span></span><br><span class=\"line\">\t<span class=\"built_in\">swap</span>(&a, &b);</span><br><span class=\"line\">\tcout << <span class=\"string\">"a="</span> << a << endl;</span><br><span class=\"line\">\tcout << <span class=\"string\">"b="</span> << b << endl;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/08/MZHoDAgdaqRuf6C.png\" alt=\"image-20220608154414999\"></p>\n<p><strong>当形参是地址时,形参会修饰实参</strong>。</p>\n<ul>\n<li>引用传递</li>\n</ul>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"function\"><span class=\"type\">void</span> <span class=\"title\">swap</span><span class=\"params\">(<span class=\"type\">int</span> &a, <span class=\"type\">int</span> &b)</span> </span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> temp;</span><br><span class=\"line\">\ttemp = a;</span><br><span class=\"line\">\ta = b;</span><br><span class=\"line\">\tb = temp;</span><br><span class=\"line\">}</span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> c = <span class=\"number\">20</span>;</span><br><span class=\"line\">\t<span class=\"type\">int</span> d = <span class=\"number\">5</span>;</span><br><span class=\"line\">\t<span class=\"comment\">//值传递</span></span><br><span class=\"line\">\t<span class=\"built_in\">swap</span>(c, d);</span><br><span class=\"line\">\tcout << <span class=\"string\">"c="</span> << c << endl;</span><br><span class=\"line\">\tcout << <span class=\"string\">"d="</span> << d << endl;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/08/qasvkIju7ge8KWr.png\" alt=\"image-20220608154811190\"></p>\n<p>因为此时a作为c的引用,b作为d的引用,形参改变时也会引起实参的改变,因为此时a就是c,a只是c的一个别名而已,a一改变,c也会改变。</p>\n<h4 id=\"结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。\"><a href=\"#结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。\" class=\"headerlink\" title=\"结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。\"></a>结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。</h4>","site":{"data":{}},"excerpt":"","more":"<h1 id=\"引用-amp-的一般用法\"><a href=\"#引用-amp-的一般用法\" class=\"headerlink\" title=\"引用&的一般用法\"></a>引用&的一般用法</h1><h2 id=\"引用的基本语法\"><a href=\"#引用的基本语法\" class=\"headerlink\" title=\"引用的基本语法\"></a>引用的基本语法</h2><p>数据类型 &别名 = 原名</p>\n<p><strong>可以给变量起别名</strong></p>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> a = <span class=\"number\">10</span>;</span><br><span class=\"line\">\t<span class=\"type\">int</span> &b = a;</span><br><span class=\"line\">\tb = <span class=\"number\">20</span>;</span><br><span class=\"line\">\tcout << a;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>可以看到结果是20,b作为a的别名,改变b的值就会改变a的值。</p>\n<p><img src=\"https://s2.loli.net/2022/06/08/sBYMJfPEuCmAFp9.png\" alt=\"image-20220608151529371\"></p>\n<h2 id=\"引用的注意事项\"><a href=\"#引用的注意事项\" class=\"headerlink\" title=\"引用的注意事项\"></a>引用的注意事项</h2><ul>\n<li><p>引用必须初始化</p>\n<p>int &b;//<strong>错误的</strong></p>\n</li>\n<li><p>引用一旦初始化后,就不可以更改了</p>\n<p>b作为a的别名以后,不能再作为其他变量的别名了</p>\n</li>\n</ul>\n<h2 id=\"引用做函数参数\"><a href=\"#引用做函数参数\" class=\"headerlink\" title=\"引用做函数参数\"></a>引用做函数参数</h2><p>以交换函数来分别对比三种函数参数的结果。</p>\n<ul>\n<li>值传递</li>\n</ul>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"function\"><span class=\"type\">void</span> <span class=\"title\">swap</span><span class=\"params\">(<span class=\"type\">int</span> a, <span class=\"type\">int</span> b)</span> </span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> temp;</span><br><span class=\"line\">\ttemp = a;</span><br><span class=\"line\">\ta = b;</span><br><span class=\"line\">\tb = temp;</span><br><span class=\"line\">}</span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> a = <span class=\"number\">20</span>;</span><br><span class=\"line\">\t<span class=\"type\">int</span> b = <span class=\"number\">5</span>;</span><br><span class=\"line\">\t<span class=\"comment\">//值传递</span></span><br><span class=\"line\">\t<span class=\"built_in\">swap</span>(a, b);</span><br><span class=\"line\">\tcout << <span class=\"string\">"a="</span> << a << endl;</span><br><span class=\"line\">\tcout << <span class=\"string\">"b="</span> << b << endl;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/08/fcaseoO13pBYqAn.png\" alt=\"image-20220608153445057\"></p>\n<p>可以看出,<strong>当值作为函数参数传递时,形参的改变不会影响实参的改变</strong>。</p>\n<ul>\n<li>地址传递</li>\n</ul>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"function\"><span class=\"type\">void</span> <span class=\"title\">swap</span><span class=\"params\">(<span class=\"type\">int</span> *a, <span class=\"type\">int</span> *b)</span> </span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> temp;</span><br><span class=\"line\">\ttemp = *a;</span><br><span class=\"line\">\t*a = *b;</span><br><span class=\"line\">\t*b = temp;</span><br><span class=\"line\">}</span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> a = <span class=\"number\">20</span>;</span><br><span class=\"line\">\t<span class=\"type\">int</span> b = <span class=\"number\">5</span>;</span><br><span class=\"line\">\t<span class=\"comment\">//值传递</span></span><br><span class=\"line\">\t<span class=\"built_in\">swap</span>(&a, &b);</span><br><span class=\"line\">\tcout << <span class=\"string\">"a="</span> << a << endl;</span><br><span class=\"line\">\tcout << <span class=\"string\">"b="</span> << b << endl;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/08/MZHoDAgdaqRuf6C.png\" alt=\"image-20220608154414999\"></p>\n<p><strong>当形参是地址时,形参会修饰实参</strong>。</p>\n<ul>\n<li>引用传递</li>\n</ul>\n<figure class=\"highlight c++\"><table><tr><td class=\"gutter\"><pre><span class=\"line\">1</span><br><span class=\"line\">2</span><br><span class=\"line\">3</span><br><span class=\"line\">4</span><br><span class=\"line\">5</span><br><span class=\"line\">6</span><br><span class=\"line\">7</span><br><span class=\"line\">8</span><br><span class=\"line\">9</span><br><span class=\"line\">10</span><br><span class=\"line\">11</span><br><span class=\"line\">12</span><br><span class=\"line\">13</span><br><span class=\"line\">14</span><br><span class=\"line\">15</span><br><span class=\"line\">16</span><br></pre></td><td class=\"code\"><pre><span class=\"line\"><span class=\"function\"><span class=\"type\">void</span> <span class=\"title\">swap</span><span class=\"params\">(<span class=\"type\">int</span> &a, <span class=\"type\">int</span> &b)</span> </span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> temp;</span><br><span class=\"line\">\ttemp = a;</span><br><span class=\"line\">\ta = b;</span><br><span class=\"line\">\tb = temp;</span><br><span class=\"line\">}</span><br><span class=\"line\"><span class=\"function\"><span class=\"type\">int</span> <span class=\"title\">main</span><span class=\"params\">(<span class=\"type\">int</span> argc, <span class=\"type\">char</span> *args[])</span></span></span><br><span class=\"line\"><span class=\"function\"></span>{</span><br><span class=\"line\">\t<span class=\"type\">int</span> c = <span class=\"number\">20</span>;</span><br><span class=\"line\">\t<span class=\"type\">int</span> d = <span class=\"number\">5</span>;</span><br><span class=\"line\">\t<span class=\"comment\">//值传递</span></span><br><span class=\"line\">\t<span class=\"built_in\">swap</span>(c, d);</span><br><span class=\"line\">\tcout << <span class=\"string\">"c="</span> << c << endl;</span><br><span class=\"line\">\tcout << <span class=\"string\">"d="</span> << d << endl;</span><br><span class=\"line\">}</span><br></pre></td></tr></table></figure>\n\n<p>结果如下:</p>\n<p><img src=\"https://s2.loli.net/2022/06/08/qasvkIju7ge8KWr.png\" alt=\"image-20220608154811190\"></p>\n<p>因为此时a作为c的引用,b作为d的引用,形参改变时也会引起实参的改变,因为此时a就是c,a只是c的一个别名而已,a一改变,c也会改变。</p>\n<h4 id=\"结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。\"><a href=\"#结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。\" class=\"headerlink\" title=\"结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。\"></a>结论:当需要形参修饰实参的时候,用引用传递,当不需要形参修饰实参的时候,用值传递。</h4>"}],"PostAsset":[],"PostCategory":[{"post_id":"cl42mhu3z0006r8vl2gsdhhrd","category_id":"cl42mhu3x0004r8vlejy14mzo","_id":"cl42mhu400008r8vlgavjcon6"},{"post_id":"cl42mhu3t0001r8vl5ao71g42","category_id":"cl42mhu3x0004r8vlejy14mzo","_id":"cl42mhu41000ar8vlfzqzgeae"},{"post_id":"cl42mhu3w0003r8vl4fgn8wkr","category_id":"cl42mhu400007r8vla03s0jcw","_id":"cl42mhu41000br8vlaxw36ecj"},{"post_id":"cl42mhu3y0005r8vlaptd88es","category_id":"cl42mhu3x0004r8vlejy14mzo","_id":"cl42mhu42000cr8vlc6rcfdxi"},{"post_id":"cl45apywp0000ckvl6ge9h9g9","category_id":"cl42mhu3x0004r8vlejy14mzo","_id":"cl45apywt0001ckvl4bvacij1"}],"PostTag":[],"Tag":[]}}