[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-672875-105":59,"doc-detail-672875-en":130,"doc-similar-672875":160},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","google-c-style-guide-revision-3180","Google C++ Style Guide - Revision 3.180","","Google C++ Style Guide（Revision 3.180）系统性规定C++代码的编写规范，重点围绕可读性、可维护性与一致性展开。内容说明如何通过统一风格与约定帮助开发者快速理解他人代码，并限制或约束易造成错误与复杂度膨胀的语言特性。指南覆盖头文件组织、宏与包含顺序、内联函数约束、函数参数排列、命名与注释风格、格式化与空白字符选择等多个方面，以确保工程代码库保持清晰、稳定与易扩展。",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/google-c-style-guide-revision-3180/672875/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/google-c-style-guide-revision-3180/672875.png","ImageObject",300,407,{"name":92,"@type":93},"4398046744996","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-11-02",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"本风格指南的核心目标是什么？","Question",{"text":112,"@type":113},"指南旨在管理C++语言带来的复杂度，通过明确的“可做/不可做”规则保持代码库可控，并强调一致性以提升可读性与可维护性。","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"头文件（Header Files）需要遵循哪些基本要求？",{"text":117,"@type":113},"指南强调：通常每个.cc文件应配套相应的.h文件；头文件应使用#define guard以防止被多次包含。",{"name":119,"@type":110,"acceptedAnswer":120},"指南如何建议组织包含（#include）与前置声明？",{"text":121,"@type":113},"对于依赖管理，指南建议：当前置声明足够时，不要使用#include，以避免不必要的依赖并减少隐藏耦合。","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},672875,1793611847,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":66,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":41,"preview_page_count":19,"preview_urls":143},4398046744996,"Google C++ Style Guide  \nRevision 3.180  \nBenjy Weinberger Craig Silverstein Gregory Eitzmann Mark Mentovai Tashana Landray  \nEach style point has a summary for which additional information is available by toggling the accompanying arrow button that looks this way: ▶ . You may toggle all summaries with the big arrow button:  \n▶ Toggle all summaries  \nTable of Contents  \n\n| Header Files | The \\#define Guard   Header File Dependencies\u003Cbr>Inline Functions  The -inl. h Files\u003Cbr>Function Parameter Ordering   Names and Order of Includes |\n| --- | --- |\n| Scoping | Namespaces  Nested Classes\u003Cbr>Nonmember, Static Member, and Global Functions\u003Cbr>Local Variables   Static and Global Variables |\n| Classes | Doing Work in Constructors   Default Constructors\u003Cbr>Explicit Constructors   Copy Constructors   Structs vs. Classes Inheritance   Multiple Inheritance   Interfaces\u003Cbr>Operator Overloading  Access Control  Declaration Order Write Short Functions |\n| Google\u003Cbr>Specific Magic | Smart Pointers   cpplint |\n| Other C++ Features | Reference Arguments  Function Overloading\u003Cbr>Default Arguments  Variable-Length Arrays and alloca() Friends   Exceptions   Run-Time Type Information (RTTI) Casting   Streams   Preincrement and Predecrement\u003Cbr>Use of const   Integer Types   64-bit Portability\u003Cbr>Preprocessor Macros   0 and NULL   sizeof  Boost   C++0x |\n| Naming | General Naming Rules   File Names  Type Names\u003Cbr>Variable Names   Constant Names   Function Names Namespace Names   Enumerator Names   Macro Names Exceptions to Naming Rules |\n| Comments | Comment Style  File Comments  Class Comments\u003Cbr>Function Comments  Variable Comments\u003Cbr>Implementation Comments |\n\n[http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml](http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml) Page 1 of 12  \nPunctuation, Spelling and Grammar Deprecation Comments  \nTODO Comments  \n| Formatting | Line Length  Non-ASCII Characters   Spaces vs. Tabs Function Declarations and Definitions   Function Calls Conditionals   Loops and Switch Statements\u003Cbr>Pointer and Reference Expressions  Boolean Expressions Return Values  Variable and Array Initialization Preprocessor Directives   Class Format\u003Cbr>Constructor Initializer Lists   Namespace Formatting Horizontal Whitespace  Vertical Whitespace |\n| --- | --- |\n| Exceptions to the Rules | Existing Non-conformant Code  Windows Code |\n\nImportant Note  \n▶  \nDisplaying Hidden Details in this Guide  \nThis style guide contains many details that are initially hidden from view. They are  \nmarked by the triangle icon, which you see here on your left. Click it now. You should see \"Hooray\" appear below.  \nBackground  \nC++ is the main development language used by many of Google's open-source projects. As every C++ programmer knows, the language has many powerful features, but this power brings with it complexity, which in turn can make code more bug-prone and harder to read and maintain.  \nThe goal of this guide is to manage this complexity by describing in detail the dos and don'ts of writing C++ code. These rules exist to keep the code base manageable while still allowing coders to use C++ language features productively.  \nStyle, also known as readability, is what we call the conventions that govern our C++ code. The term Style is a bit of a misnomer, since these conventions cover far more than just source file formatting.  \nOne way in which we keep the code base manageable is by enforcing consistency. It is very important that any programmer be able to look at another's code and quickly understand it. Maintaining a uniform style and following conventions means that we canmore easily use \"pattern-matching\" to infer what various symbols are and what invariants are true about them. Creating common, required idioms and patterns makes code much easier to understand. In some cases there might be good arguments for changing certain style rules, but we nonetheless keep things as they are in order topreserve consistency.  \nAnother issu","cbCaici73CrKxbPC","https://ap.wps.com/l/cbCaici73CrKxbPC","pdf",281275,12,"English","# Table of Contents\n## Header Files\n## Scoping\n## Classes\n## Google Specific Magic\n## Other C++ Features\n## Naming\n## Comments\n## Formatting\n## Exceptions to the Rules","[{\"question\":\"本风格指南的核心目标是什么？\",\"answer\":\"指南旨在管理C++语言带来的复杂度，通过明确的“可做/不可做”规则保持代码库可控，并强调一致性以提升可读性与可维护性。\"},{\"question\":\"头文件（Header Files）需要遵循哪些基本要求？\",\"answer\":\"指南强调：通常每个.cc文件应配套相应的.h文件；头文件应使用#define guard以防止被多次包含。\"},{\"question\":\"指南如何建议组织包含（#include）与前置声明？\",\"answer\":\"对于依赖管理，指南建议：当前置声明足够时，不要使用#include，以避免不必要的依赖并减少隐藏耦合。\"}]","Google C++ Style Guide - Revision 3.180 | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/76da5f48207eba56825a3bb5aa96083d.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e260845c5ddd5b01c6980200934f89ec.webp",982,1270,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7c50b722ac7bb496990740c53f469b85.webp",981,1269,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/80a0f5e90afb39d03316941cd9f59f03.webp",980,1268,{"list":161,"token":66},[162,168,174,180,186,193,200,206,212,218],{"doc_id":163,"doc_title":164,"file_type":136,"home_preview_img_url":165,"slug":166,"view_count":34,"category_name":30,"create_tm":167},608153,"NCSAA Girl’s Volleyball Rules & Regulations - Roster Rules & Forfeit Policy","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229957873504/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=foqGhJXV1RTglzs4BGJjLYuxlXc%3D","ncsaa-girls-volleyball-rules-regulations-roster-rules-forfeit-policy",1792219419,{"doc_id":169,"doc_title":170,"file_type":136,"home_preview_img_url":171,"slug":172,"view_count":138,"category_name":30,"create_tm":173},561470,"SSC2S110 - 应用手册 - Rev.0.4","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947755498/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=tq9YUOAWNmcCrb9DBG%2FWZUZwhwc%3D","ssc2s110-application-manual-rev04",1791805944,{"doc_id":175,"doc_title":176,"file_type":136,"home_preview_img_url":177,"slug":178,"view_count":14,"category_name":30,"create_tm":179},732129,"PSoC® Mixed-Signal Array - Functional Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031401986/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=c29C3FufMIGLkmcczDg%2BXqWX2%2Bo%3D","psoc-mixed-signal-array-functional-overview",1795378523,{"doc_id":181,"doc_title":182,"file_type":136,"home_preview_img_url":183,"slug":184,"view_count":81,"category_name":30,"create_tm":185},700624,"SATELLITE 2100CDS/CDT - Product Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012030678/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=cVWkeZ3idu6fSHDoZZbFfZN1NtU%3D","satellite-2100cdscdt-product-specifications",1794519656,{"doc_id":187,"doc_title":188,"file_type":136,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":30,"create_tm":192},561676,"NC1602D-series - Specification - VER.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947656010/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=%2FIgNynw0Nj79IclsMu86n71zC7s%3D","nc1602d-series-specification-ver0",23,1791806550,{"doc_id":194,"doc_title":195,"file_type":136,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":30,"create_tm":199},136873,"CIPL 2026 Calendar of Events - Monthly program","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229863144178/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=TY3PTZMJ1DrJ9ACJskgZH1%2Bgngs%3D","cipl-2026-calendar-of-events-monthly-program",22,1787394653,{"doc_id":201,"doc_title":202,"file_type":136,"home_preview_img_url":203,"slug":204,"view_count":24,"category_name":30,"create_tm":205},720639,"Grove-4-Digit Display Introduction - Module Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676696/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=%2B4JjeT0j7u5AJ7CvmizKw8hAK78%3D","grove-4-digit-display-introduction-module-guide",1795038594,{"doc_id":207,"doc_title":208,"file_type":136,"home_preview_img_url":209,"slug":210,"view_count":29,"category_name":30,"create_tm":211},700208,"Apollo4 Blue SoC Datasheet - Version 1 - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012017896/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=51s4%2F2BHW2zszNPkLTT9CjaYqHo%3D","apollo4-blue-soc-datasheet-version-1-overview",1794517030,{"doc_id":213,"doc_title":214,"file_type":136,"home_preview_img_url":215,"slug":216,"view_count":81,"category_name":30,"create_tm":217},670585,"Open Data Structures - Edition 0.1Gβ","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988344087/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=%2BVGa0j24UyRDnX0N14whKGgWuoE%3D","open-data-structures-edition-01g",1793570142,{"doc_id":219,"doc_title":220,"file_type":136,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":30,"create_tm":224},562361,"AIC1734-300mA Low Dropout Linear Regulator - 300mA Output Version","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947677451/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796134079&Signature=XjNpSBXzWE1C4ucsDDJm40vYy94%3D","aic1734-300ma-low-dropout-linear-regulator-300ma-output-version",11,1791808439]