对于许多问题,答案似乎在“标准”中找到。然而,我们在哪里找到它呢?最好是网上。

谷歌有时会让人觉得毫无意义,尤其是对于C标准,因为它们淹没在编程论坛上的讨论洪流中。

首先,因为这些是我现在正在搜索的,哪里有好的在线资源:

C89 C99 C11 C + + 98 c++ 03 c++ 11 c++ 14 c++ 17


当前回答

您可能会发现c++ 0x的国际标准草案很有用。

其他回答

ISO标准需要花钱,从中等数额(PDF版本)到稍微多一点(纸质版本)。

虽然它们还没有最终定稿,但通常可以在网上找到草稿。大多数情况下,最终版本与上一版没有太大的不同,所以虽然不完美,但它们也很合适。

c++ 0x草案

您可能会发现c++ 0x的国际标准草案很有用。

虽然不是一个实际的标准,但ISO C (C89/90)有一个修正案,称为C94/95,或规范附录1。它被集成到C99中,尽管Clang等编译器允许您在命令行上指定-std=c94。ISO/IEC 9899:1990/Amd 1:1995可以从SAI GLOBAL以高价购买(PDF或硬拷贝)。

http://clc-wiki.net/wiki/The_C_Standard

该文件的摘要可以在这里找到。

When the (then draft) ANSI C Standard was being considered for adoption of an International Standard in 1990, there were several objections because it didn't address internationalization issues. Because the Standard had already been several years in the making, it was agreed that a few changes would be made to provide the basis (for example, the functions in subclause 7.10.7 were added), and work would be carried out separately to provide proper internationalization of the Standard. This work has culminated in Normative Addendum 1. Normative Addendum 1 embodies C's reaction to both the limitations and promises of international character sets. Digraphs and the header were meant to improve the appearance of C programs written in national variants of ISO 646 without, e.g., { or } characters. On the other end of the spectrum, the facilities connected to and extend the old Standard's barely adequate basis into a complete and consistent set of utilities for handling wide characters and multibyte strings. This document summarizes Normative Addendum 1. It is intended to quickly inform readers who are already familiar with the Standard; it does not, and cannot, introduce the complex subject matter behind NA1, nor can it replace the original document as a reference manual. (Nevertheless, it tries to be as accurate as possible, and its author would like to hear about any errors or omissions.)

http://www.lysator.liu.se/c/na1.html

C99可在线购买。引用自www.open-std.org:

该标准的最新公开版本是 合并C99 + TC1 + TC2 + TC3, WG14 N1256,日期2007-09-07。这是 WG14的工作文件,但它反映了统一的标准 发行时间。

C99和c++ 03标准可从Wiley以书籍的形式获得:

Amazon上的c++标准 C亚马逊标准

此外,如前所述,未来标准的工作草案通常可从委员会网站获得:

c++委员会网站 C委员会网站

C-201x草案是N1336, c++ 0x草案是N3225。