* [[wp>ISO/IEC JTC 1/SC 22]] * ISO/IEC 聯合技術委員會 (Joint Technical Committee, JTC),小組委員會 (Subcommittee, SC),工作組 (Working Group, WG)。 * WG 14 負責 C 語言,WG 21 負責 C++ 語言。 * [[http://blog.codingnow.com/2010/01/the_new_c_standard_1_2.html|《The New C Standard》的新版下载]] * [[http://www.coding-guidelines.com/cbook/cbook1_2.pdf|The New C Standard]] * 第 157 頁,對照 [[http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf|C99]] 逐句 (sentence by sentence) 閱讀。 * [[http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1169.pdf|Embedded C standard]] * [[https://isocpp.org/std/the-standard|The Standard : Standard C++]] * [[http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4296.pdf|Working Draft, Standard for Programming Language C++]] * C++ 標準對某些術語有給出較精確的解釋。 * [[http://www.waterlike.com.tw/bookdata.asp?NO=TP3C136043|征服 C 指針 (日)前橋和彌]] * [[http://eli.thegreenplace.net/2007/11/24/the-context-sensitivity-of-cs-grammar|The context sensitivity of C's grammar]] * [[http://trevorjim.com/c-and-cplusplus-are-not-context-free/|C and C++ are not context free]] * 注意! C 語言不是上下文無關的語法。 ====== 標準 ====== * [[http://www.nongnu.org/hcb/|Hyperlinked C++ BNF Grammar]] * 1 General * 1.2 Normative references * 本標準所參考到的其它標準。 * 1.3 Terms and definitions * 本標準使用到的名詞和定義。 * 1.4 Implementation compliance * 實現規範。 * 1.5 Structure of this International Standard * 本標準的文件大綱 * 條款 (clause) 2 至 16 描述 C++ 語言。 * 條款 18 至 30 描述 C++ 標準函式庫。 * 1.6 Syntax notation * 語法符號 * 1.7 The C ++ memory model * C++ 內存模型 * 1.8 The C ++ object model * C++ 物件模型 * The constructs in a C ++ program create, destroy, refer to, access, and manipulate objects. An object is a region of storage. * 物件 (object) 是儲存空間 (一般是內存) 的一塊區域。 * 1.9 Program execution * 1.10 Multi-threaded executions and data races * 多執行緒和 data race * 2 Lexical conventions * 定義前處理器和編譯器需要處理的符號 (token)。 * 3 Basic concepts * 基本觀念 * 3.1 Declarations and definitions * 3.2 One definition rule * 3.3 Scope * 3.4 Name lookup * 3.5 Program and linkage * 3.6 Start and termination * 3.7 Storage duration * 3.8 Object lifetime * 3.9 Types * 3.10 Lvalues and rvalues * 3.11 Alignment * 4 Standard conversions * 標準轉換。即語言規定,並由編譯器自行所做的轉換。 * 5 Expressions * 表達式 * 5.20 Constant expressions [(http://www.nongnu.org/hcb/#constant-expression)] * 6 Statements [(http://www.nongnu.org/hcb/#statement)] * 述句 * 7 Declarations * 8 Declarators * 9 Classes * 類別 * 10 Derived classes * 衍生類 * 11 Member access control * 成員存取控制 * 12 Special member functions * 特殊成員函式 * 12.1 Constructors * 建構子 * 13 Overloading * 覆載 * 14 Templates * 模板 * 15 Exception handling * 例外處理 * 16 Preprocessing directives * 定義前處理器指示符。 ====== 附錄 ====== * Annex A (informative): Grammar summary * [[http://www.nongnu.org/hcb/|Hyperlinked C++ BNF Grammar]] ====== 外部連結 ====== * [[http://yosefk.com/c++fqa/|C++ FQA Lite]] * [[https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=637|SEI CERT C++ Coding Standard]]